public void DrawOpsWindow(string buttonLabel) { //If we're in the editor or the manifest has no experiment slots then hook em up! if (HighLogic.LoadedSceneIsEditor || manifestAdmin.experimentSlots == null) { GetExperimentSlots(); manifestAdmin.experimentSlots = this.experimentSlots; } //Let the manifest admin draw the GUI. manifestAdmin.DrawGUIControls(); }
public void DrawOpsWindow(string buttonLabel) { if (isAvailable == false) { GUILayout.BeginVertical(); GUILayout.Label("<color=yellow>" + unavailableMessage + "</color>"); GUILayout.EndVertical(); return; } //If we're in the editor or the manifest has no experiment slots then hook em up! if (HighLogic.LoadedSceneIsEditor || manifestAdmin.experimentSlots == null) { GetExperimentSlots(); manifestAdmin.experimentSlots = this.experimentSlots; } manifestAdmin.DrawGUIControls(); }