Exemplo n.º 1
0
 private void DoMainToolbar()
 {
     EditorGUILayout.BeginHorizontal(EditorStyles.get_toolbar(), new GUILayoutOption[0]);
     this.searchBox.OnGUI();
     SkillEditorGUILayout.ToolbarSettingsButton();
     GUILayout.Space(-5f);
     EditorGUILayout.EndHorizontal();
 }
Exemplo n.º 2
0
 private void DoToolbar()
 {
     EditorGUILayout.BeginHorizontal(EditorStyles.get_toolbar(), new GUILayoutOption[0]);
     this.searchBox.OnGUI();
     if (SkillEditorGUILayout.ToolbarSettingsButton() && this.SettingsButtonClicked != null)
     {
         this.SettingsButtonClicked.Invoke();
     }
     GUILayout.Space(-5f);
     EditorGUILayout.EndHorizontal();
 }
Exemplo n.º 3
0
 private void DoMainToolbar()
 {
     EditorGUILayout.BeginHorizontal(EditorStyles.get_toolbar(), new GUILayoutOption[0]);
     this.searchBox.OnGUI();
     if (SkillEditorGUILayout.ToolbarSettingsButton())
     {
         this.GenerateSettingsMenu().ShowAsContext();
     }
     GUILayout.Space(-5f);
     EditorGUILayout.EndHorizontal();
 }
Exemplo n.º 4
0
 private void DoToolbar()
 {
     EditorGUILayout.BeginHorizontal(EditorStyles.get_toolbar(), new GUILayoutOption[0]);
     this.searchBox.OnGUI();
     if (SkillEditorGUILayout.ToolbarSettingsButton())
     {
         GlobalEventsWindow.GenerateEventManagerMenu().ShowAsContext();
     }
     GUILayout.Space(-5f);
     EditorGUILayout.EndHorizontal();
 }
Exemplo n.º 5
0
 private void DoToolbar()
 {
     GUILayout.BeginHorizontal(EditorStyles.get_toolbar(), new GUILayoutOption[0]);
     SkillSelector.FsmFilter fsmFilter = (SkillSelector.FsmFilter)EditorGUILayout.EnumPopup(this.fsmFilter, EditorStyles.get_toolbarPopup(), new GUILayoutOption[0]);
     if (this.fsmFilter != fsmFilter)
     {
         this.SetFilterMode(fsmFilter);
     }
     if (SkillEditorGUILayout.ToolbarSettingsButton())
     {
         this.GenerateSettingsMenu().ShowAsContext();
     }
     GUILayout.Space(-10f);
     GUILayout.EndHorizontal();
 }
Exemplo n.º 6
0
        private void DoMainToolbar()
        {
            GUILayout.BeginHorizontal(EditorStyles.get_toolbar(), new GUILayoutOption[0]);
            string fullFsmLabel = Labels.GetFullFsmLabel(SkillEditor.SelectedFsm);

            if (GUILayout.Button(fullFsmLabel, EditorStyles.get_toolbarDropDown(), new GUILayoutOption[0]))
            {
                SkillEditorGUILayout.GenerateFsmSelectionMenu(false, false).ShowAsContext();
            }
            if (SkillEditorGUILayout.ToolbarSettingsButton())
            {
                SkillLogger.GenerateSettingsMenu().ShowAsContext();
            }
            GUILayout.Space(-5f);
            GUILayout.EndHorizontal();
        }
Exemplo n.º 7
0
 private void DoToolbar()
 {
     EditorGUILayout.BeginHorizontal(EditorStyles.get_toolbar(), new GUILayoutOption[0]);
     if (GUILayout.Button(Strings.get_ErrorSelector_Refresh(), EditorStyles.get_toolbarButton(), new GUILayoutOption[0]))
     {
         FsmErrorChecker.Refresh();
     }
     GUILayout.FlexibleSpace();
     this.filterByFsm = GUILayout.Toggle(this.filterByFsm, new GUIContent(Strings.get_ErrorSelector_Filter_Selected_FSM_Only(), Strings.get_ErrorSelector_Filter_Selected_FSM()), EditorStyles.get_toolbarButton(), new GUILayoutOption[0]);
     GUILayout.Space(5f);
     if (SkillEditorGUILayout.ToolbarSettingsButton())
     {
         ErrorSelector.GenerateSettingsMenu().ShowAsContext();
     }
     GUILayout.Space(-5f);
     EditorGUILayout.EndHorizontal();
 }