mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-21 12:33:29 +01:00
three tiny fixes
This commit is contained in:
parent
b733d1df0e
commit
a58470de9f
3 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@ protected override void LoadContent() {
|
|||
// Load your other content here
|
||||
|
||||
// Initialize the Ui system
|
||||
this.UiSystem = new UiSystem(this.Window, this.GraphicsDevice, new UntexturedStyle(this.SpriteBatch));
|
||||
this.UiSystem = new UiSystem(this, this.GraphicsDevice, new UntexturedStyle(this.SpriteBatch));
|
||||
}
|
||||
|
||||
protected override void Update(GameTime gameTime) {
|
||||
|
|
|
@ -6,7 +6,7 @@ namespace MLEM.Ui.Elements {
|
|||
/// <summary>
|
||||
/// A group element to be used inside of a <see cref="UiSystem"/>.
|
||||
/// A group is an element that has no rendering or interaction on its own, but that can aid with automatic placement of child elements.
|
||||
/// If a grouping whose children scroll, and which has a <see cref="ScrollBar"/>, is desired, a panel with its <see cref="Panel.Texture"/> set to <see langword="null"/> can be used.
|
||||
/// If a grouping whose children scroll, and which has a <see cref="ScrollBar"/>, is desired, a <see cref="Panel"/> with its <see cref="Panel.Texture"/> set to <see langword="null"/> can be used.
|
||||
/// </summary>
|
||||
public class Group : Element {
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ namespace MLEM.Ui.Elements {
|
|||
|
||||
if (scrollOverflow) {
|
||||
this.scrollBarMaxHistory = new float[3];
|
||||
this.scrollBarMaxHistoryDirty = true;
|
||||
this.ResetScrollBarMaxHistory();
|
||||
|
||||
this.ScrollBar = new ScrollBar(Anchor.TopRight, Vector2.Zero, 0, 0) {
|
||||
|
|
Loading…
Reference in a new issue