Esempio n. 1
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);
        }
Esempio n. 2
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();
 }