1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-01 05:10:50 +01:00

three tiny fixes

This commit is contained in:
Ell 2024-10-30 20:33:05 +01:00
parent b733d1df0e
commit a58470de9f
3 changed files with 3 additions and 2 deletions

View file

@ -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) {

View file

@ -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 {

View file

@ -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) {