Merge FlexContainer, WIP dynamic container resizing.

This commit is contained in:
2025-06-20 19:46:42 +02:00
parent 76dafe9996
commit bc95fff4a3
3 changed files with 164 additions and 4 deletions

View File

@@ -125,5 +125,13 @@ public class TestGame : Game
private ResourceRef<Sound> _sound;
private ResourceRef<Texture2d> _icon;
private GridContainer _container = new(minimumSize: new Rect(64.0f, 64.0f), new());
private FlexContainer _container = new(minimumSize: new Rect(64.0f, 64.0f), new())
{
Size = new Rect(500, 300),
Direction = FlexDirection.Row,
Justify = JustifyContent.Start,
Align = AlignItems.Center,
Wrap = true,
Gap = 10f
};
}