void update_part_status()
 {
     if (parts == null)
     {
         parts = TCAModulesDatabase.GetPurchasedParts();
     }
     parts.ForEach(p => p.UpdateInfo(CFG));
     if (HighLogic.LoadedSceneIsEditor)
     {
         TCAGuiEditor.UpdateModules();
     }
 }
 static void onToolbarToggle(ClickEvent e)
 {
     if (TCA != null)
     {
         TCAGui.ToggleWithButton(TCAButton);
     }
     else if (HighLogic.LoadedSceneIsEditor && TCAGuiEditor.Available)
     {
         TCAGuiEditor.ToggleWithButton(TCAButton);
     }
     else
     {
         TCAManual.ToggleWithButton(TCAButton);
     }
 }
Beispiel #3
0
 protected override void onLeftClick()
 {
     if (TCA != null)
     {
         TCAGui.ToggleWithButton(ALButton);
     }
     else if (HighLogic.LoadedSceneIsEditor && TCAGuiEditor.Available)
     {
         TCAGuiEditor.ToggleWithButton(ALButton);
     }
     else
     {
         TCAManual.ToggleWithButton(ALButton);
     }
 }