protected override void CreateControls()
        {
            base.CreateControls();

            // Destinations Tab
            textAddDestination = new GUITextBox("Add Destination: ", "", "", 180, 300, DoAddDestination);
            buttonAddDest      = new GUIButton("Add", DoAddDestination, new GUILayoutOption[] { GUILayout.Width(120) });
            buttonRemoveDest   = new GUIButton("Remove", DoRemoveDestination, new GUILayoutOption[] { GUILayout.Width(100) });

            comboDestination = new DropDown(new Vector2(260, 170), KLVCore.GetAllDestinationName());
            RegisterCombos(comboDestination);

            // Settings Tab
            textFolderPath     = new GUITextBox("Config path:", SaveManager.vehiclesPath, "", 300, 400);
            buttonSave         = new GUIButton("Save Configurations", DoSave, null);
            buttonLoad         = new GUIButton("Load Configurations", DoLoad, null);
            buttonUnload       = new GUIButton("Unload All Configurations", DoUnload, null);
            buttonIncreaseFont = new GUIButton("▲", DoIncreaseFont, GUILayout.Width(30));
            buttonDecreaseFont = new GUIButton("▼", DoDecreaseFont, GUILayout.Width(30));
        }
Esempio n. 2
0
        protected override void CreateControls()
        {
            base.CreateControls();

            //Tabs
            buttonTabSubassemblies = new GUIButton("Get Vehicle", DoChangeTab, new GUILayoutOption[] { GUILayout.ExpandWidth(true) });

            //Edit Vehicle
            textVehicleName         = new GUITextBox("Name :", "", "", 150, 210);
            textVehicleNote         = new GUIFreeText("Notes...", 475, 60);
            buttonSaveVehicle       = new GUIButton("Save Vehicle", DoSaveVehicle, new GUILayoutOption[] { GUILayout.Width(165) });
            buttonCancelVehicleEdit = new GUIButton("Cancel", EndVehicleEdit, new GUILayoutOption[] { GUILayout.Width(85) });
            comboFamily             = new DropDown(new Vector2(180, 108), KLVCore.GetAllFamilyNames(), null, "Select Family");
            RegisterCombos(comboFamily);
            editVehicleList       = GUIListNode.CreateListNode3Lvl(KLVCore.GetFullVehicleSummary(), null, DoEditVehicle);
            dropZone              = new GUIButton("ADD VESSEL AS LAUNCH VEHICLE", DoAddSubassembly, new GUILayoutOption[] { GUILayout.Height(60) });
            buttonAddLaunchConfig = new GUIButton("Add Launch Config", DoAddLaunchConfig, new GUILayoutOption[] { GUILayout.Width(175) });

            //Suggestions
            buttonUpdateSuggestions = new GUIButton("Update Suggestions", DoUpdateLists, new GUILayoutOption[] { GUILayout.Width(180) });
            buttonGetSuggestion     = new GUIButton("Load", DoLoadSuggestion, new GUILayoutOption[] { GUILayout.Width(80) });

            DoUpdateLists();
        }