void DrawPageHeader(string title, QColor titleColor, string subtitle, QColor subtitleColor, QTexture iconQTexture)
        {
            QUI.Space(SPACE_2);
            QUI.Box(QStyles.GetBackgroundStyle(Style.BackgroundType.Low, QColors.Color.Gray), WindowSettings.CurrentPageContentWidth + WindowSettings.pageShadowWidth, WindowSettings.pageHeaderHeight);
            QUI.Space(-WindowSettings.pageHeaderHeight + (WindowSettings.pageHeaderHeight - WindowSettings.pageHeaderHeight * 0.8f) / 2);
            QUI.BeginHorizontal(WindowSettings.CurrentPageContentWidth + WindowSettings.pageShadowWidth, WindowSettings.pageHeaderHeight * 0.8f);
            {
                QUI.Space((WindowSettings.pageHeaderHeight - WindowSettings.pageHeaderHeight * 0.8f));
                QUI.BeginVertical((WindowSettings.CurrentPageContentWidth + WindowSettings.pageShadowWidth) / 2, WindowSettings.pageHeaderHeight * 0.8f);
                {
                    QUI.FlexibleSpace();
                    if (!title.IsNullOrEmpty())
                    {
                        QUI.Space(-SPACE_2);
                        QUI.SetGUIColor(titleColor.Color);
                        QUI.Label(title, PageHeaderTitleStyle, (WindowSettings.CurrentPageContentWidth + WindowSettings.pageShadowWidth) / 2, 26);
                        QUI.ResetColors();
                    }

                    if (!subtitle.IsNullOrEmpty())
                    {
                        QUI.Space(-SPACE_2);
                        QUI.SetGUIColor(subtitleColor.Color);
                        QUI.Label(subtitle, PageHeaderSubtitleStyle, (WindowSettings.CurrentPageContentWidth + WindowSettings.pageShadowWidth) / 2, 18);
                        QUI.ResetColors();
                    }
                    QUI.FlexibleSpace();
                }
                QUI.EndVertical();
                QUI.FlexibleSpace();
                QUI.DrawTexture(iconQTexture.texture, WindowSettings.pageHeaderHeight * 0.8f, WindowSettings.pageHeaderHeight * 0.8f);
                QUI.Space((WindowSettings.pageHeaderHeight - WindowSettings.pageHeaderHeight * 0.8f) / 2);
            }
            QUI.EndHorizontal();
        }
        void DrawTargetParticleSystem(float width)
        {
            QUI.Box(QStyles.GetBackgroundStyle(Style.BackgroundType.Low, uiEffect.targetParticleSystem == null ? QColors.Color.Red : QColors.Color.Blue), width, 20);
            QUI.Space(-20);

            QLabel.text  = "Target ParticleSystem";
            QLabel.style = Style.Text.Normal;

            QUI.BeginHorizontal(width);
            {
                QUI.Space(SPACE_4);
                QUI.BeginVertical(QLabel.x, QUI.SingleLineHeight);
                {
                    QUI.Label(QLabel);
                    QUI.Space(1);
                }
                QUI.EndVertical();
                QUI.PropertyField(targetParticleSystem, width - QLabel.x - 20);
                QUI.FlexibleSpace();
                QUI.Space(SPACE_8);
            }
            QUI.EndHorizontal();

            infoMessage["ParticleSystemDisabled"].show.target = uiEffect.targetParticleSystem == null;
            DrawInfoMessage("ParticleSystemDisabled", GlobalWidth);

            QUI.Space(SPACE_4 * infoMessage["ParticleSystemDisabled"].show.faded);
        }
        bool CheckThatFolderIsEmpty(string relativePath)
        {
            var fileNames = System.IO.Directory.GetFiles(relativePath);

            if (fileNames.Length > 0)
            {
                QUI.Space(SPACE_4);

                QLabel.text  = "This folder contains files. Click to delete them.";
                QLabel.style = Style.Text.Help;

                QUI.BeginVertical(16, 16);
                {
                    QUI.Space(2);
                    QUI.DrawTexture(QResources.iconWarning.texture, 14, 14);
                }
                QUI.EndVertical();

                QUI.Space(-SPACE_2);

                QUI.Label(QLabel);

                return(true);
            }

            return(false);
        }
示例#4
0
 void DrawEffects()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Notification Effects", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 130);
         QUI.BeginChangeCheck();
         {
             QUI.DrawList(effects, 288, "No UIEffect referenced...");
         }
         if (QUI.EndChangeCheck())
         {
             serializedObject.ApplyModifiedProperties();
             if (uiNotification.effects != null && uiNotification.effects.Length > 0)
             {
                 for (int i = 0; i < uiNotification.effects.Length; i++)
                 {
                     if (uiNotification.effects[i] != null)
                     {
                         uiNotification.effects[i].targetUIElement = uiNotification.notificationContainer;
                         uiNotification.effects[i].name            = "Notification Effect " + i;
                     }
                 }
             }
         }
     }
     QUI.EndHorizontal();
     if (effects.arraySize > 0)
     {
         QUI.Space(SPACE_8);
     }
 }
示例#5
0
 void DrawSpecialElements()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Special Elements", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 130);
         QUI.BeginChangeCheck();
         {
             QUI.DrawList(specialElements, 288, "No UIElement referenced...");
         }
         if (QUI.EndChangeCheck())
         {
             serializedObject.ApplyModifiedProperties();
             if (uiNotification.specialElements != null && uiNotification.specialElements.Length > 0)
             {
                 for (int i = 0; i < uiNotification.specialElements.Length; i++)
                 {
                     if (uiNotification.specialElements[i] != null)
                     {
                         uiNotification.specialElements[i].transform.SetParent(uiNotification.transform);
                         uiNotification.specialElements[i].name = DUI.DUISettings.UIElement_Inspector_RenameGameObjectPrefix + "Special Element " + i + DUI.DUISettings.UIElement_Inspector_RenameGameObjectSuffix;
                     }
                 }
             }
         }
     }
     QUI.EndHorizontal();
     if (specialElements.arraySize > 0)
     {
         QUI.Space(SPACE_8);
     }
 }
示例#6
0
        void DrawSortingLayerName()
        {
            QUI.BeginHorizontal(WIDTH_420);
            {
                QUI.Label("Sorting Layer Name", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 126);
                if (!useCustomSortingLayerName.boolValue)
                {
                    targetSortingLayerName = TargetCanvas.overrideSorting
                                             ? TargetCanvas.sortingLayerName
                                             : TargetCanvas.rootCanvas.sortingLayerName;

                    QUI.Label(targetSortingLayerName, DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormalItalic), 140);
                    QUI.Toggle(useCustomSortingLayerName);
                    QUI.Label("use a custom layer name", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmall), 200);
                    customSortingLayerName.stringValue = targetSortingLayerName;
                }
                else
                {
                    if (customSortingLayerName.stringValue == MISSING_UIELEMENT)
                    {
                        customSortingLayerName.stringValue = "Default";
                    }
                    QUI.PropertyField(customSortingLayerName, 140);
                    QUI.Toggle(useCustomSortingLayerName);
                    QUI.Label("use a custom layer name", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmall), 200);
                }
            }
            QUI.EndHorizontal();
            QUI.Space(SPACE_2);
        }
        void DrawButtonCategory(float width)
        {
            QUI.BeginHorizontal(width);
            {
                if (EditorApplication.isPlayingOrWillChangePlaymode)
                {
                    QLabel.text  = buttonCategory.stringValue;
                    QLabel.style = Style.Text.Help;
                    QUI.Label(QLabel);
                }
                else
                {
                    buttonCategoryIndex = DatabaseUIButtons.CategoryNameIndex(buttonCategory.stringValue); //set the index
                    QUI.BeginChangeCheck();
                    buttonCategoryIndex = EditorGUILayout.Popup(buttonCategoryIndex, DatabaseUIButtons.categoryNames.ToArray(), GUILayout.Width(width - 5));
                    if (QUI.EndChangeCheck())
                    {
                        buttonCategory.stringValue = DatabaseUIButtons.categoryNames[buttonCategoryIndex];
                        if (buttonCategory.stringValue == DUI.CUSTOM_NAME)
                        {
                            buttonNameIndex = -1;
                        }
                    }
                }

                QUI.FlexibleSpace();
            }
            QUI.EndHorizontal();
        }
        private void OnGUI()
        {
            UpdateWindowSize();

            float width = position.width;

            QLabel.text  = "Pre-release Check";
            QLabel.style = Style.Text.Normal;
            QUI.Label(QLabel);

            QUI.Space(SPACE_2);

            DrawDeleteFile(DUI.RELATIVE_PATH_CONTROL_PANEL_WINDOW_SETTINGS, "ControlPanelWindowSettings", width, ".asset");
            QUI.Space(SPACE_4);
            DrawConvertDUIDataToSourceFiles(DUI.RELATIVE_PATH_DUIDATA, "DUIData", ".asset", width);
            QUI.Space(SPACE_4);
            DrawDeleteFile(DUI.RELATIVE_PATH_SETTINGS, "DUISettings", width, ".asset");
            QUI.Space(SPACE_4);
            DrawPerformDatabaseUpgrade(width);

            QUI.Space(SPACE_16);
            if (QUI.GhostButton("Export UIDrawer", QColors.Color.Blue, 200, 20, false))
            {
                PackageExporter.PackageExporter.ExportAsset_UIDrawer();
            }
        }
示例#9
0
 void DrawNewsArticle(List <NewsArticleData> articles, int index, Object targetObject, bool showDeleteButton, float width)
 {
     QLabel.text  = articles[index].title;
     QLabel.style = Style.Text.Subtitle;
     QUI.Box(QStyles.GetBackgroundStyle(Style.BackgroundType.Low, QColors.Color.Gray), width, 20);
     QUI.Space(-20);
     QUI.BeginHorizontal(width);
     {
         QUI.Space(6);
         QUI.Label(QLabel);
         QUI.FlexibleSpace();
         if (showDeleteButton)
         {
             if (QUI.ButtonMinus())
             {
                 if (QUI.DisplayDialog("Delete Article", "Delete the '" + QLabel.text + "' article?", "Ok", "Cancel"))
                 {
                     articles.RemoveAt(index);
                     QUI.SetDirty(targetObject);
                     AssetDatabase.SaveAssets();
                     QUI.ExitGUI();
                 }
             }
         }
         QUI.Space(SPACE_4);
     }
     QUI.EndHorizontal();
     QLabel.text  = articles[index].content;
     QLabel.style = Style.Text.Normal;
     QUI.Space(-8 + (showDeleteButton ? 2 : 0));
     EditorGUILayout.LabelField(articles[index].content, QStyles.GetInfoMessageMessageStyle(Style.InfoMessage.Help), GUILayout.Width(width));
     QUI.Space(SPACE_4);
 }
        bool CheckThatFileExists(string relativePath, string fileName, string fileExtension)
        {
            if (System.IO.File.Exists(relativePath + fileName + fileExtension))
            {
                QUI.Space(SPACE_4);

                QLabel.text  = "File exists.";
                QLabel.style = Style.Text.Help;

                QUI.BeginVertical(16, 16);
                {
                    QUI.Space(2);
                    QUI.DrawTexture(QResources.iconError.texture, 14, 14);
                }
                QUI.EndVertical();

                QUI.Space(-SPACE_2);

                QUI.Label(QLabel);

                return(true);
            }

            return(false);
        }
        void DrawSettings(float width)
        {
            QUI.Space(SPACE_2);
            QUI.BeginHorizontal(width);
            {
                QUI.QToggle("play on awake", playOnAwake, 20);
                QUI.FlexibleSpace();

                QUI.QToggle("stop instantly on hide", stopInstantly, 20);
                QUI.FlexibleSpace();

                QLabel.text  = "start delay on show";
                QLabel.style = Style.Text.Normal;
                QUI.Box(QStyles.GetBackgroundStyle(Style.BackgroundType.Low, startDelay.floatValue != 0 ? QColors.Color.Blue : QColors.Color.Gray), 4 + QLabel.x + 40 + 16, 20);
                QUI.Space(-(QLabel.x + 40 + 16));
                QUI.BeginVertical(QLabel.x, QUI.SingleLineHeight);
                {
                    QUI.Space(1);
                    QUI.Label(QLabel);
                }
                QUI.EndVertical();
                QUI.PropertyField(startDelay, 40);
                QUI.Space(SPACE_4);
            }
            QUI.EndHorizontal();
        }
示例#12
0
 void DrawButtons()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Notification Buttons", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 130);
         QUI.BeginChangeCheck();
         {
             QUI.DrawList(buttons, 288, "No UIButton referenced...");
         }
         if (QUI.EndChangeCheck())
         {
             serializedObject.ApplyModifiedProperties();
             if (uiNotification.buttons != null && uiNotification.buttons.Length > 0)
             {
                 for (int i = 0; i < uiNotification.buttons.Length; i++)
                 {
                     if (uiNotification.buttons[i] != null)
                     {
                         uiNotification.buttons[i].name = "Notification Button " + i;
                     }
                 }
             }
         }
     }
     QUI.EndHorizontal();
     if (buttons.arraySize > 0)
     {
         QUI.Space(SPACE_8);
     }
 }
 void DrawListenSelector()
 {
     if (triggerOnGameEvent.boolValue || triggerOnButtonClick.boolValue || triggerOnButtonDoubleClick.boolValue || triggerOnButtonLongClick.boolValue)
     {
         return;
     }
     SaveColors();
     QUI.SetGUIBackgroundColor(DUIColors.BlueLight.Color);
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Listen for", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 58);
         QUI.Space(SPACE_4);
         QUI.PropertyField(triggerOnGameEvent, 12);
         QUI.Label("game event", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 72);
         QUI.Space(SPACE_4);
         QUI.PropertyField(triggerOnButtonClick, 12);
         QUI.Label("button click", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 68);
         QUI.Space(SPACE_4);
         QUI.PropertyField(triggerOnButtonDoubleClick, 12);
         QUI.Label("double click", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 70);
         QUI.Space(SPACE_4);
         QUI.PropertyField(triggerOnButtonLongClick, 12);
         QUI.Label("long click", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 64);
     }
     QUI.EndHorizontal();
     RestoreColors();
 }
 void DrawGameEventOptions()
 {
     if (!triggerOnGameEvent.boolValue)
     {
         return;
     }
     buttonCategory.stringValue = DUI.DEFAULT_CATEGORY_NAME;
     buttonName.stringValue     = DUI.DEFAULT_BUTTON_NAME;
     ValiateUIButtonNameAndCategory();
     SaveColors();
     QUI.SetGUIBackgroundColor(DUIColors.BlueLight.Color);
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Listen for", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 58);
         QUI.PropertyField(triggerOnGameEvent, 12);
         QUI.Label("game event", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 70);
         QUI.Space(SPACE_8);
         QUI.PropertyField(dispatchAll, 12);
         QUI.Label("dispatch all", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 142);
     }
     QUI.EndHorizontal();
     if (dispatchAll.boolValue)
     {
         gameEvent.stringValue = ""; return;
     }
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Game Event", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 72);
         EditorGUILayout.DelayedTextField(gameEvent, GUIContent.none, GUILayout.Width(344));
     }
     QUI.EndHorizontal();
     RestoreColors();
 }
 void DrawControlPanelGeneralOptionalModules(float width)
 {
     QUI.BeginVertical(width);
     {
         QLabel.text  = "Optional Modules Integration";
         QLabel.style = Style.Text.Tiny;
         QUI.BeginHorizontal(width);
         {
             QUI.FlexibleSpace();
             QUI.Label(QLabel);
             QUI.FlexibleSpace();
         }
         QUI.EndHorizontal();
         QUI.Space(SPACE_2);
         DrawControlPanelGeneralButton("UIDrawer", buttonStyleUIDrawer, DUI.UIDrawerEnabled, DUI.SYMBOL_UIDRAWER, width, false, true);
         if (!DUI.UIDrawerEnabled)
         {
             QUI.Space(SPACE_2);
             QUI.LinkButton("Asset Store Link", "http://u3d.as/16SE", Style.LinkButton.Unity, true);
         }
         QUI.Space(SPACE_2);
         QUI.LinkButton("UIDrawer - Owner's Manual", "https://goo.gl/6S3Gik", Style.LinkButton.Manual, true);
     }
     QUI.EndVertical();
 }
示例#16
0
 void DrawBackButtonStatus()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("The 'Back' button is " + (UIManager.BackButtonDisabled ? "DISABLED" : "ENABLED"), DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmallItalic));
     }
     QUI.EndHorizontal();
 }
示例#17
0
 void DrawButtonClicksStatus()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Button clicks are " + (UIManager.ButtonClicksDisabled ? "DISABLED" : "ENABLED"), DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmallItalic));
     }
     QUI.EndHorizontal();
 }
        void DrawPair(string title,
                      string firstLabel, SerializedProperty firstProperty, string firstDefaultValue,
                      string secondLabel, SerializedProperty secondProperty, string secondDefaultValue,
                      float width, bool isSingle = false)
        {
            QUI.Box(QStyles.GetBackgroundStyle(Style.BackgroundType.Low, QColors.Color.Purple), width, 18);
            QUI.Space(-18);

            QUI.Box(QStyles.GetBackgroundStyle(Style.BackgroundType.Low, QColors.Color.Purple), width, isSingle ? 42 : 60);
            QUI.Space(isSingle ? -44 : -62);

            QLabel.text  = title;
            QLabel.style = Style.Text.Normal;
            QUI.BeginHorizontal(width);
            {
                QUI.Space(6);
                QUI.Label(QLabel);
                QUI.FlexibleSpace();
            }
            QUI.EndHorizontal();

            QUI.Space(SPACE_2);

            QUI.BeginHorizontal(width);
            {
                QUI.Space(12);
                QLabel.text  = firstLabel;
                QLabel.style = Style.Text.Small;
                QUI.Label(QLabel);
                QUI.PropertyField(firstProperty);
                if (QUI.ButtonReset())
                {
                    firstProperty.stringValue = firstDefaultValue;
                }
                QUI.Space(6);
            }
            QUI.EndHorizontal();

            if (isSingle)
            {
                return;
            }

            QUI.BeginHorizontal(width);
            {
                QUI.Space(12);
                QLabel.text  = secondLabel;
                QLabel.style = Style.Text.Small;
                QUI.Label(QLabel);
                QUI.PropertyField(secondProperty);
                if (QUI.ButtonReset())
                {
                    secondProperty.stringValue = secondDefaultValue;
                }
                QUI.Space(6);
            }
            QUI.EndHorizontal();
        }
示例#19
0
 void DrawListenForBackButton()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Toggle(listenForBackButton);
         QUI.Label("Listen for the 'Back' button (close when pressing 'Back' or ESC)", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal));
     }
     QUI.EndHorizontal();
 }
示例#20
0
 void DrawCloseButton()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Close Button", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 130);
         QUI.PropertyField(closeButton, 281);
     }
     QUI.EndHorizontal();
 }
示例#21
0
 void DrawDebug()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Toggle(debug);
         QUI.Label("debug", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmall), 54);
     }
     QUI.EndHorizontal();
 }
示例#22
0
 void DrawTargetParticleSystem()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Target ParticleSystem", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 126);
         QUI.PropertyField(targetParticleSystem, 290);
     }
     QUI.EndHorizontal();
 }
示例#23
0
 void DrawSettings()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Toggle(autoDisableButtonClicks);
         QUI.Label("Auto disable Button Clicks when an UIElement is in trasition", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 408, 18);
     }
     QUI.EndHorizontal();
 }
示例#24
0
 void DrawTitle()
 {
     QUI.BeginHorizontal(position.width);
     {
         QUI.Space(110);
         QUI.Label(nTitle, DUIStyles.GetStyle(DUIStyles.NotificationWindow.NotificationTitleBlack), 480, 40);
         QUI.Space(10);
     }
     QUI.EndHorizontal();
 }
 void DrawDontDestroyOnLoad()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.PropertyField(dontDestroyOnLoad, 12);
         QUI.Label("Don't Destroy On Load", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), WIDTH_210);
     }
     QUI.EndHorizontal();
     QUI.Space(SPACE_4);
 }
示例#26
0
 void DrawMessage()
 {
     QUI.BeginHorizontal(position.width);
     {
         QUI.Space(10);
         QUI.Label(nMessage, DUIStyles.GetStyle(DUIStyles.NotificationWindow.NotificationMessageBlack), 580, 104);
         QUI.Space(10);
     }
     QUI.EndHorizontal();
 }
示例#27
0
 void DrawAbout()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         showHowToUse.target = QUI.Toggle(showHowToUse.target);
         QUI.Label("Remind me how to use this with PlayMaker", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmall));
     }
     QUI.EndHorizontal();
     infoMessage["HowToUse"].show.target = showHowToUse.target;
     DrawInfoMessage("HowToUse", WIDTH_420);
 }
        void DrawSortingLayerName(float width)
        {
            QUI.Box(QStyles.GetBackgroundStyle(Style.BackgroundType.Low, useCustomSortingLayerName.boolValue ? QColors.Color.Blue : QColors.Color.Gray), width - 164, 20);
            QUI.Space(-20);

            QUI.BeginHorizontal(width);
            {
                QLabel.text  = "Sorting Layer Name";
                QLabel.style = Style.Text.Normal;
                tempFloat    = QLabel.x; //save label width

                QUI.Space(SPACE_4);

                QUI.BeginVertical(QLabel.x, QUI.SingleLineHeight);
                {
                    QUI.Space(1);
                    QUI.Label(QLabel);
                }
                QUI.EndVertical();

                if (!useCustomSortingLayerName.boolValue)
                {
                    targetSortingLayerName = TargetCanvas.overrideSorting
                                             ? TargetCanvas.sortingLayerName
                                             : TargetCanvas.rootCanvas.sortingLayerName;

                    QLabel.text  = targetSortingLayerName;
                    QLabel.style = Style.Text.Help;

                    QUI.BeginVertical(width - tempFloat - 174, QUI.SingleLineHeight);
                    {
                        QUI.Space(2);
                        QUI.Label(QLabel);
                    }
                    QUI.EndVertical();

                    customSortingLayerName.stringValue = targetSortingLayerName;
                }
                else
                {
                    if (customSortingLayerName.stringValue == MISSING_UIELEMENT)
                    {
                        customSortingLayerName.stringValue = "Default";
                    }

                    QUI.PropertyField(customSortingLayerName, width - tempFloat - 184);
                    QUI.Space(2);
                }

                QUI.QToggle("use a custom layer name", useCustomSortingLayerName, 20);
            }
            QUI.EndHorizontal();
            QUI.Space(SPACE_2);
        }
示例#29
0
 void DrawDispatcherSelector()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QUI.Label("Dispatch", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelNormal), 68);
         QUI.Toggle(dispatchGameEvents);
         QUI.Label("Game Events", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmall), 68);
         QUI.Toggle(dispatchButtonClicks);
         QUI.Label("Button Clicks", DUIStyles.GetStyle(DUIStyles.TextStyle.LabelSmall), 68);
     }
     QUI.EndHorizontal();
 }
 void DrawDispatcherSelector()
 {
     QUI.BeginHorizontal(WIDTH_420);
     {
         QLabel.text  = "Dispatch";
         QLabel.style = Style.Text.Normal;
         QUI.Label(QLabel);
         QUI.QToggle("Game Events", dispatchGameEvents);
         QUI.QToggle("Button Clicks", dispatchButtonClicks);
         QUI.FlexibleSpace();
     }
     QUI.EndHorizontal();
 }