Example #1
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();
        }