Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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());
                }
            }
        }
Exemplo n.º 3
0
 public override void onPartDelete()
 {
     if (buildSceneDrawer == this)
     {
         buildSceneDrawer = null;
     }
     RenderingManager.RemoveFromPostDrawQueue(0, drawBuildSceneGUI);
 }
Exemplo n.º 4
0
 public override void onPartDetach()
 {
     if (buildSceneDrawer == this) buildSceneDrawer = null;
     RenderingManager.RemoveFromPostDrawQueue(0, drawBuildSceneGUI);
 }
Exemplo n.º 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());
                }
            }
        }