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