Ejemplo n.º 1
0
 protected void DoUpdateLists(GUIButton sender = null, object value = null)
 {
     listSuggestions = GUIListNode.CreateListNode2Lvl(KLVCore.GetVehicleSuggestions(payloadMass, ignoreMass), null, DoShowSuggestionInfo);
     listSuggestions.SetCollapsedAll(false);
     listSuggestions.SetLevelStyle(2, klvGUIStyles.PanelLabel);
     editVehicleList = GUIListNode.CreateListNode3Lvl(KLVCore.GetFullVehicleSummary(), null, DoEditVehicle);
     UpdateFamilies(true);
 }
Ejemplo n.º 2
0
 protected void UpdateFamilies(bool forceNoEdit = false)
 {
     if (!forceNoEdit && GlobalSettings.AllowFamilyEdit)
     {
         familyList = GUIListNode.CreateListNode3Lvl(KLVCore.GetFullVehicleSummary(), null, null, DoBeginFamilyEdit);
     }
     else
     {
         familyList = GUIListNode.CreateListNode3Lvl(KLVCore.GetFullVehicleSummary());
     }
 }
Ejemplo n.º 3
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();
        }