private static void DoToolbar() { 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(true, false).ShowAsContext(); } GUILayout.EndHorizontal(); }
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(); }