void DrawOverlay(float width)
 {
     QUI.QObjectPropertyField("Overlay", overlay, width, 20, true);
     QUI.BeginHorizontal(width);
     {
         QLabel.text  = "When Closed";
         QLabel.style = Style.Text.Small;
         QUI.LabelWithBackground(QLabel);
         QUI.Space(SPACE_4);
         QUI.QToggle("Disable", disableOverlayWhenClosed);
         QUI.Space(SPACE_4);
         QUI.QToggle("Dont Disable Canvas", dontDisableOverlayCanvasWhenClosed);
         QUI.FlexibleSpace();
     }
     QUI.EndHorizontal();
 }
Пример #2
0
 void DrawDebugOptions(float width)
 {
     QUI.BeginHorizontal(width);
     {
         QUI.LabelWithBackground("Debug");
         QUI.FlexibleSpace();
         QUI.QToggle("GameEvents", debugGameEvents, Style.Text.Small);
         QUI.FlexibleSpace();
         QUI.QToggle("UIButtons", debugUIButtons, Style.Text.Small);
         QUI.FlexibleSpace();
         QUI.QToggle("UIElements", debugUIElements, Style.Text.Small);
         QUI.FlexibleSpace();
         QUI.QToggle("UINotifications", debugUINotifications, Style.Text.Small);
     }
     QUI.EndHorizontal();
 }
 void DrawContainer(float width)
 {
     QUI.QObjectPropertyField("Container", container, width, 20, true);
     QUI.BeginHorizontal(width);
     {
         QLabel.text  = "When Closed";
         QLabel.style = Style.Text.Small;
         QUI.LabelWithBackground(QLabel);
         QUI.Space(SPACE_4);
         QUI.QToggle("Fade Out", fadeOutContainerWhenClosed);
         QUI.Space(SPACE_4);
         QUI.QToggle("Disable", disableContainerWhenClosed);
         QUI.Space(SPACE_4);
         QUI.QToggle("Dont Disable Canvas", dontDisableContainerCanvasWhenClosed);
         QUI.FlexibleSpace();
     }
     QUI.EndHorizontal();
     QUI.BeginHorizontal(width);
     {
         QUI.QObjectPropertyField("Container Size", containerSize, width - 160 - 2, 20, false);
         QUI.Space(SPACE_2);
         if (QUI.GhostButton("Update Container", QColors.Color.Gray, 160, 20, false))
         {
             UpdateContainer();
         }
     }
     QUI.EndHorizontal();
     QUI.BeginHorizontal(width);
     {
         if ((UIDrawer.ContainerSize)containerSize.enumValueIndex == UIDrawer.ContainerSize.PercentageOfScreen)
         {
             QUI.QObjectPropertyField("Percentage (0 - 1)", containerPercentageOfScreenSize, (width - 4) * 0.2f, 20, false);
             QUI.Space(SPACE_2);
             QUI.QObjectPropertyField("Min Size", containerMinimumSize, (width - 2) * 0.6f, 20, false);
         }
         else if ((UIDrawer.ContainerSize)containerSize.enumValueIndex == UIDrawer.ContainerSize.FixedSize)
         {
             QUI.QObjectPropertyField("Fixed Size", containerFixedSize, width, 20, false);
         }
     }
     QUI.EndHorizontal();
 }
Пример #4
0
 void DrawButtonClicksStatus(float width)
 {
     QUI.LabelWithBackground("Button clicks are " + (UIManager.Instance.ButtonClicksDisabled ? "DISABLED" : "ENABLED"));
 }
Пример #5
0
 void DrawBackButtonStatus(float width)
 {
     QUI.LabelWithBackground("The 'Back' button is " + (UIManager.Instance.BackButtonDisabled ? "DISABLED" : "ENABLED"));
 }