static void onToolbarToggle(ClickEvent e)
 {
     if (TCA != null)
     {
         TCAGui.ToggleWithButton(TCAButton);
     }
     else if (HighLogic.LoadedSceneIsEditor && TCAGuiEditor.Available)
     {
         TCAGuiEditor.ToggleWithButton(TCAButton);
     }
     else
     {
         TCAManual.ToggleWithButton(TCAButton);
     }
 }
Esempio n. 2
0
 protected override void onLeftClick()
 {
     if (TCA != null)
     {
         TCAGui.ToggleWithButton(ALButton);
     }
     else if (HighLogic.LoadedSceneIsEditor && TCAGuiEditor.Available)
     {
         TCAGuiEditor.ToggleWithButton(ALButton);
     }
     else
     {
         TCAManual.ToggleWithButton(ALButton);
     }
 }