private void OverviewPageGUI()
{
bool enabled = GUI.enabled;
this.showSmallWindow = base.position.width <= this.widthToHideButtons;
if (Event.current.type == EventType.Layout)
{
this.wasHidingButtons = this.showSmallWindow;
}
else if (this.showSmallWindow != this.wasHidingButtons)
{
GUIUtility.ExitGUI();
}
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
if (!this.showSmallWindow)
{
GUILayout.BeginVertical(new GUILayoutOption[0]);
this.ShortServerInfo();
if (this.needsSetup)
{
GUI.enabled = false;
}
this.OtherServerCommands();
GUI.enabled = enabled;
this.ServerAdministration();
GUI.enabled = !this.needsSetup && enabled;
GUILayout.EndVertical();
GUILayoutOption[] options = new GUILayoutOption[] { GUILayout.Width((base.position.width - 30f) / 2f) };
GUILayout.BeginHorizontal(options);
}
else
{
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
}
GUI.enabled = !this.needsSetup && enabled;
SplitterGUILayout.BeginVerticalSplit(this.splitter, new GUILayoutOption[0]);
this.ShortUpdateList();
this.ShortCommitList();
SplitterGUILayout.EndVerticalSplit();
GUILayout.EndHorizontal();
GUILayout.EndHorizontal();
GUI.enabled = enabled;
}