Переглянути джерело

Merge pull request #851 from Areloch/ModalMenuMadness

Fixes ordering of controls on PauseMenu gui so the input handler doesn't eat mouse inputs
Brian Roberts 3 роки тому
батько
коміт
0c2a31613b
1 змінених файлів з 12 додано та 12 видалено
  1. 12 12
      Templates/BaseGame/game/data/UI/guis/pauseMenu.gui

+ 12 - 12
Templates/BaseGame/game/data/UI/guis/pauseMenu.gui

@@ -17,6 +17,18 @@ $guiContent = new GuiControl(PauseMenu) {
       isContainer = "1";
       isContainer = "1";
       canSaveDynamicFields = "1";
       canSaveDynamicFields = "1";
    };
    };
+   new GuiInputCtrl(PauseMenuInputHandler) {
+      sendAxisEvents = "1";
+      sendBreakEvents = "1";
+      ignoreMouseEvents = "1";
+      position = "-50 0";
+      extent = "10 10";
+      horizSizing = "width";
+      vertSizing = "height";
+      profile = "GuiInputCtrlProfile";
+      tooltipProfile = "GuiToolTipProfile";
+      class = "MenuInputHandler";
+   };
    new GuiControl(PauseMenuButtons) {
    new GuiControl(PauseMenuButtons) {
       position = "162 125";
       position = "162 125";
       extent = "700 518";
       extent = "700 518";
@@ -147,17 +159,5 @@ $guiContent = new GuiControl(PauseMenu) {
          hidden = "1";
          hidden = "1";
       };
       };
    };
    };
-   new GuiInputCtrl(PauseMenuInputHandler) {
-      sendAxisEvents = "1";
-      sendBreakEvents = "1";
-      ignoreMouseEvents = "1";
-      position = "-50 0";
-      extent = "10 10";
-      horizSizing = "width";
-      vertSizing = "height";
-      profile = "GuiInputCtrlProfile";
-      tooltipProfile = "GuiToolTipProfile";
-      class = "MenuInputHandler";
-   };
 };
 };
 //--- OBJECT WRITE END ---
 //--- OBJECT WRITE END ---