void drawBuildSceneGUI() { //in the VAB, onPartFixedUpdate doesn't get called, so //settings changes don't get saved unless we do this: if (core.settingsChanged) { core.saveSettings(); } if (buildSceneDrawer == null) { buildSceneDrawer = this; } if (buildSceneDrawer == this && buildSceneShow) { runSimulations(); GUI.skin = MuUtils.DefaultSkin; if (buildSceneMinimized) { windowPos = GUILayout.Window(872035, windowPos, buildSceneWindowGUI, "Vessel Info", minimizedWindowOptions()); } else { windowPos = GUILayout.Window(872035, windowPos, buildSceneWindowGUI, getName(), windowOptions()); } //Show the planitron if (_planitron != null && _planitron.enabled) { _planitron.drawVAB(917); } } }
void drawBuildSceneGUI() { //in the VAB, onPartFixedUpdate doesn't get called, so //settings changes don't get saved unless we do this: if (core.settingsChanged) { core.saveSettings(); } if (buildSceneDrawer == null) { buildSceneDrawer = this; } if (buildSceneDrawer == this && buildSceneShow) { runSimulations(); GUI.skin = HighLogic.Skin; if (buildSceneMinimized) { windowPos = GUILayout.Window(872035, windowPos, buildSceneWindowGUI, "Vessel Info", minimizedWindowOptions()); } else { windowPos = GUILayout.Window(872035, windowPos, buildSceneWindowGUI, getName(), windowOptions()); } } }
public override void onPartDelete() { if (buildSceneDrawer == this) { buildSceneDrawer = null; } RenderingManager.RemoveFromPostDrawQueue(0, drawBuildSceneGUI); }
public override void onPartDetach() { if (buildSceneDrawer == this) buildSceneDrawer = null; RenderingManager.RemoveFromPostDrawQueue(0, drawBuildSceneGUI); }
void drawBuildSceneGUI() { //in the VAB, onPartFixedUpdate doesn't get called, so //settings changes don't get saved unless we do this: if (core.settingsChanged) core.saveSettings(); if (buildSceneDrawer == null) { buildSceneDrawer = this; } if (buildSceneDrawer == this && buildSceneShow) { runSimulations(); GUI.skin = HighLogic.Skin; if (buildSceneMinimized) { windowPos = GUILayout.Window(872035, windowPos, buildSceneWindowGUI, "Vessel Info", minimizedWindowOptions()); } else { windowPos = GUILayout.Window(872035, windowPos, buildSceneWindowGUI, getName(), windowOptions()); } } }