public override void OnGUI() { Init(); EditorGUILayoutHorizontalPanes.Begin(overallConfiguration); GUILayout.BeginVertical(); EditorGUILayout.HelpBox(currentBranchLabel.text, isDetachedHeadMode ? MessageType.Warning : MessageType.Info, true); Space(); EditorGUILayoutVerticalPanes.Begin(changesConfiguration); ShowUnstagedChanges(); EditorGUILayoutVerticalPanes.Splitter(); ShowStagedChanges(); EditorGUILayoutVerticalPanes.End(); GUILayout.EndVertical(); EditorGUILayoutHorizontalPanes.Splitter(); GUILayout.BeginVertical(); EditorGUILayoutVerticalPanes.Begin(commitAndDiffConfiguration); ShowDiffView(); EditorGUILayoutVerticalPanes.Splitter(); ShowCommitMessageEditor(); EditorGUILayoutVerticalPanes.End(); GUILayout.EndVertical(); EditorGUILayoutHorizontalPanes.End(); }
public static void VerticalSplitPane(VerticalPaneState paneState, Action top, Action bottom) { EditorGUILayoutVerticalPanes.Begin(); top(); EditorGUILayoutVerticalPanes.Splitter(); bottom(); EditorGUILayoutVerticalPanes.End(); }
public void OnGUI() { HandleInputFocusAndStateForEditor(); EditorGUILayoutToolbar.Begin(); if (GUILayout.Button("Clear Log", EditorStyles.toolbarButton, GUILayout.ExpandWidth(false))) { logEntries.Clear(); } EditorGUILayoutToolbar.Space(); showVars = GUILayout.Toggle(showVars, "Locals", EditorStyles.toolbarButton, GUILayout.ExpandWidth(false)); showLog = GUILayout.Toggle(showLog, "Log", EditorStyles.toolbarButton, GUILayout.ExpandWidth(false)); if (showLog) { EditorGUILayoutToolbar.Space(); filterTraces = GUILayout.Toggle(filterTraces, "Filter", EditorStyles.toolbarButton, GUILayout.ExpandWidth(false)); } EditorGUILayoutToolbar.FlexibleSpace(); showHelp = GUILayout.Toggle(showHelp, "?", EditorStyles.toolbarButton, GUILayout.ExpandWidth(false)); EditorGUILayoutToolbar.End(); if (showHelp) { ShowHelp(); } else { ShowEditor(); if (showVars && showLog) { EditorGUILayoutVerticalPanes.Begin(paneConfiguration); ShowVars(); EditorGUILayoutVerticalPanes.Splitter(); ShowLog(); EditorGUILayoutVerticalPanes.End(); } else { if (showVars) { ShowVars(); } else if (showLog) { ShowLog(); } } } }