void OnGUI()
        {
            GUI.skin = HighLogic.Skin;
            string name = "Extraplanetary Launchpad";
            string ver  = ExSettings.GetVersion();
            string sit  = pad.vessel.situation.ToString();

            windowpos = GUILayout.Window(GetInstanceID(),
                                         windowpos, WindowGUI,
                                         name + " " + ver + ": " + sit,
                                         GUILayout.Width(640));
            if (craftlist != null)
            {
                craftlist.OnGUI();
            }
        }
        void OnGUI()
        {
            GUI.skin = HighLogic.Skin;

            string name = "Extraplanetary Launchpad";
            string ver  = ExSettings.GetVersion();

            if (windowpos.x == 0)
            {
                windowpos = new Rect(Screen.width / 2 - 250,
                                     Screen.height / 2 - 30, 0, 0);
            }
            windowpos = GUILayout.Window(GetInstanceID(),
                                         windowpos, WindowGUI,
                                         name + " " + ver,
                                         GUILayout.Width(500));
        }
Beispiel #3
0
        void OnGUI()
        {
            if (!showGUI || buildCost == null)
            {
                return;
            }

            if (winpos.x == 0 && winpos.y == 0)
            {
                winpos.x      = Screen.width / 2;
                winpos.y      = Screen.height / 2;
                winpos.width  = 300;
                winpos.height = 100;
            }
            string ver = ExSettings.GetVersion();

            winpos = GUILayout.Window(GetInstanceID(), winpos, InfoWindow,
                                      "Build Resources: " + ver,
                                      GUILayout.MinWidth(200));
        }
 void Start()
 {
     Debug.Log("Extraplanetary Launchpads "
               + ExSettings.GetVersion());
     Destroy(this);
 }