示例#1
0
        void DrawTitleSection()
        {
            EditorGUILayout.BeginHorizontal();

            EditorGUILayout.BeginVertical();
            NSEditorStyles.DrawTitle(new GUIContent(" Hardlight Editor"));
            EditorGUILayout.EndVertical();
            //NSEditorStyles.DrawLabel("   v" + NSManager.GetPluginVersionInfo().ToString());

            NSEditorStyles.DrawButton("Plugin v" + NSManager.GetPluginVersionInfo().ToString());
            if (NSEditorStyles.DrawButton(NSEditorStyles.CompactMode ? "Feedback" : "Send Feedback"))
            {
                Application.OpenURL(FeedbackLink);
            }
            if (NSEditorStyles.DrawButton(NSEditorStyles.CompactMode ? "Docs" : "Documentation"))
            {
                Application.OpenURL(DocumentationLink);
            }
            if (NSEditorStyles.DrawButton(NSEditorStyles.CompactMode ? "+" : "Compact Mode"))
            {
                NSEditorStyles.CompactMode = !NSEditorStyles.CompactMode;
            }
            EditorGUILayout.EndHorizontal();

            //NSEditorStyles.DrawLabel("Holy Crap Dividers!");
            //NSEditorStyles.DrawDivider(1);
            //NSEditorStyles.DrawLabel("In different styles!");
            //NSEditorStyles.DrawDivider(3);
            //NSEditorStyles.DrawLabel("Sizes!");
            //NSEditorStyles.DrawDivider(NSEditorStyles.ColorBoxType.Error, 8);
            //NSEditorStyles.DrawLabel("And colors!");
            //NSEditorStyles.DrawDivider(NSEditorStyles.ColorBoxType.Black, 4);
            //NSEditorStyles.DrawDivider(NSEditorStyles.ColorBoxType.Tutorial, 8);
        }
示例#2
0
        private void DrawTutorialButtons()
        {
            //GUILayout.Space(4);
            NSEditorStyles.DrawTitle("Tutorial", 0);
            NSEditorStyles.OpenHorizontal();

            //Draw a back button
            if (NSEditorStyles.TutorialToolbarButton(CurrentTutorialIndex <= 0, "Previous"))
            {
                //Decrement the current tutorial index
                CurrentTutorialIndex--;
            }

            //Draw a restart button
            if (NSEditorStyles.TutorialToolbarButton(CurrentTutorialIndex <= 0, "Restart"))
            {
                //Set the tutorial index back to 0.
                CurrentTutorialIndex = 0;
            }

            if (CurrentTutorialIndex > LargestTutorialIndex - 1)
            {
                //Draw a finish button
                if (NSEditorStyles.TutorialToolbarButton(false, "Finish!"))
                {
                    //Increment the current tutorial index
                    TutorialModeActive = false;
                }
            }
            else
            {
                //Draw a next button
                if (NSEditorStyles.TutorialToolbarButton(CurrentTutorialIndex > LargestTutorialIndex - 1, "Next"))
                {
                    //OutputMessage("Next button hit", MessageType.Info);
                    //Increment the current tutorial index
                    CurrentTutorialIndex++;
                }
            }

            NSEditorStyles.DrawLabel("Current Index: " + CurrentTutorialIndex);
            NSEditorStyles.CloseHorizontal();
            GUILayout.Space(2);
        }
示例#3
0
 public virtual void DrawTitleContent()
 {
     NSEditorStyles.OpenHorizontal();
     NSEditorStyles.DrawTitle(PaneTitle);
     if (!TutorialModeActive)
     {
         //Draw a walkthrough button
         DrawWalkthroughButton(WalkthroughText);
     }
     else
     {
         //Draw a exit tutorial button
         if (NSEditorStyles.TutorialToolbarButton(false, "Exit Tutorial"))
         {
             TutorialModeActive = false;
         }
     }
     NSEditorStyles.CloseHorizontal();
 }
 public override void DrawPaneContent()
 {
     NSEditorStyles.OpenHorizontal(ColorBoxType.Warning);
     NSEditorStyles.DrawTitle("This tool is coming soon!\nIt will let you watch in real time what is going on in each pad.");
     NSEditorStyles.CloseHorizontal();
 }