Procházet zdrojové kódy

Update example to use dock

Jean-David Moisan před 2 roky
rodič
revize
5a51e1c548
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      Example/Game/GameRoot.cs

+ 3 - 2
Example/Game/GameRoot.cs

@@ -50,7 +50,8 @@ namespace GameProject {
 
             _ui.UpdateAll(gameTime);
 
-            MenuPanel.Push().XY = new Vector2(100, 100);
+            Dock.Put(0, 0, InputHelper.WindowWidth, InputHelper.WindowHeight);
+            Vertical.Push();
             if (_menu == Menu.Main) {
                 Label.Put("Main Menu");
                 Label.Put($"Your name is '{_name}'");
@@ -68,7 +69,7 @@ namespace GameProject {
                 if (Button.Put("Yes").Clicked) Exit();
                 if (Button.Put("No").Clicked) _menu = Menu.Main;
             }
-            MenuPanel.Pop();
+            Vertical.Pop();
 
             GuiHelper.UpdateCleanup();
             base.Update(gameTime);