예제 #1
0
        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);
                }
            }
        }
예제 #2
0
        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());
                }
            }
        }
예제 #3
0
 public override void onPartDelete()
 {
     if (buildSceneDrawer == this)
     {
         buildSceneDrawer = null;
     }
     RenderingManager.RemoveFromPostDrawQueue(0, drawBuildSceneGUI);
 }
예제 #4
0
 public override void onPartDetach()
 {
     if (buildSceneDrawer == this) buildSceneDrawer = null;
     RenderingManager.RemoveFromPostDrawQueue(0, drawBuildSceneGUI);
 }
예제 #5
0
        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());
                }
            }
        }