Example #1
0
 private static void DoDebugFlowControls()
 {
     if (GameStateTracker.CurrentState == GameState.Stopped)
     {
         GUILayout.FlexibleSpace();
         return;
     }
     if (DebugFlow.Active)
     {
         GUI.set_contentColor(Color.get_yellow());
         GUILayout.Label(Labels.FormatTime(DebugFlow.CurrentDebugTime), EditorStyles.get_toolbarButton(), new GUILayoutOption[0]);
         GUI.set_contentColor(Color.get_white());
         GUILayout.Space(10f);
         if (GUILayout.Button(SkillEditorContent.DebugToolbarPrev, EditorStyles.get_toolbarButton(), new GUILayoutOption[0]))
         {
             DebugFlow.SelectPrevTransition();
         }
         if (GUILayout.Button(SkillEditorContent.DebugToolbarNext, EditorStyles.get_toolbarButton(), new GUILayoutOption[0]))
         {
             DebugFlow.SelectNextTransition();
         }
         GUILayout.FlexibleSpace();
         if (GUILayout.Button(Strings.get_DebugToolbar_Button_Open_Log(), EditorStyles.get_toolbarButton(), new GUILayoutOption[0]))
         {
             SkillEditor.OpenFsmLogWindow();
             GUIUtility.ExitGUI();
             return;
         }
     }
     else
     {
         GUILayout.FlexibleSpace();
         if (GUILayout.Button(Strings.get_DebugToolbar_Button_Open_Log(), EditorStyles.get_toolbarButton(), new GUILayoutOption[0]))
         {
             SkillEditor.OpenFsmLogWindow();
             GUIUtility.ExitGUI();
         }
     }
 }
Example #2
0
 public static string FormatTime(float time)
 {
     return(Labels.FormatTime(time));
 }