示例#1
0
        private void DoTableHeaders()
        {
            EditorGUILayout.BeginHorizontal(new GUILayoutOption[0]);
            bool changed = GUI.get_changed();

            GUI.set_changed(false);
            GUILayout.BeginHorizontal(SkillEditorStyles.TableRowBox, new GUILayoutOption[0]);
            GUILayout.Toggle(false, SkillEditorContent.EventBroadcastIcon, SkillEditorStyles.TableRowHeader, new GUILayoutOption[0]);
            this.sortByUsageCount = !GUILayout.Toggle(!this.sortByUsageCount, SkillEditorContent.EventHeaderLabel, SkillEditorStyles.TableRowHeader, new GUILayoutOption[]
            {
                GUILayout.MinWidth(244f)
            });
            this.sortByUsageCount = GUILayout.Toggle(this.sortByUsageCount, SkillEditorContent.EventUsedHeaderLabel, SkillEditorStyles.TableRowHeader, new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            if (SkillEditorGUILayout.SettingsButtonPadded())
            {
                this.GenerateEventManagerMenu().ShowAsContext();
            }
            GUILayout.EndHorizontal();
            if (GUI.get_changed())
            {
                this.SortEvents();
            }
            else
            {
                GUI.set_changed(changed);
            }
            EditorGUILayout.EndHorizontal();
            if (FsmEditorSettings.ShowHints)
            {
                GUILayout.Box(Strings.get_Hint_EventManager(), SkillEditorStyles.HintBox, new GUILayoutOption[0]);
            }
        }