public virtual void AddItemsToMenu(GenericMenu menu)
{
if (!this.needsSetup)
{
menu.AddItem(new GUIContent("Refresh"), false, new GenericMenu.MenuFunction(this.ActionRefresh));
menu.AddSeparator("");
}
menu.AddItem(new GUIContent("Connection"), false, new GenericMenu.MenuFunction2(this.ActionSwitchPage), Page.ServerConfig);
menu.AddSeparator("");
if (!this.needsSetup)
{
menu.AddItem(new GUIContent("Show History"), false, new GenericMenu.MenuFunction2(this.ActionSwitchPage), Page.History);
menu.AddItem(new GUIContent("Discard Changes"), false, new GenericMenu.MenuFunction(this.ActionDiscardChanges));
menu.AddSeparator("");
}
menu.AddItem(new GUIContent("Server Administration"), false, new GenericMenu.MenuFunction2(this.ActionSwitchPage), Page.Admin);
}