void RenameSite() { bool en = GUI.enabled; GUI.enabled = en && (site != null); if (GUILayout.Button("Rename Site", ELStyles.normal, GUILayout.ExpandWidth(false))) { if (site != null) { ELRenameWindow.ShowGUI(site); } } GUI.enabled = en; }
public void ShowRenameUI() { ELRenameWindow.ShowGUI(this); }