diff --git a/Demos/UiDemo.cs b/Demos/UiDemo.cs index 5c4354e..bed85a4 100644 --- a/Demos/UiDemo.cs +++ b/Demos/UiDemo.cs @@ -65,7 +65,7 @@ namespace Demos { root.AddChild(new Paragraph(Anchor.AutoLeft, 1, "This is a small demo for MLEM.Ui, a user interface library that is part of (M)LEM (L)ibrary by (E)llpeck for (M)onoGame."){LineSpace = 1.5F}); var image = root.AddChild(new Image(Anchor.AutoCenter, new Vector2(50, 50), new TextureRegion(this.testTexture, 0, 0, 8, 8)) {IsHidden = true, Padding = new Point(3)}); - // Setting their the x or y coordinate to 1 or a lower number causes the width or height to be a percentage of the parent's width or height + // Setting the x or y coordinate of the size to 1 or a lower number causes the width or height to be a percentage of the parent's width or height // (for example, setting the size's x to 0.75 would make the element's width be 0.75*parentWidth) root.AddChild(new Button(Anchor.AutoCenter, new Vector2(1, 10), "Toggle Test Image", "This button shows a grass tile as a test image to show the automatic anchoring of objects.") { OnClicked = (element, button) => {