public void Awake() { if (ToolbarManager.ToolbarAvailable) { HangarToolbarButton = ToolbarManager.Instance.add("Hangar", "HangarButton"); HangarToolbarButton.TexturePath = "Hangar/Textures/icon_button"; HangarToolbarButton.ToolTip = "Hangar controls and info"; HangarToolbarButton.OnClick += e => HangarWindow.ToggleGUI(); } else { GameEvents.onGUIApplicationLauncherReady.Add(OnGUIAppLauncherReady); } }
public void ShowUI() { HangarWindow.ShowGUI(); }
public void HideUI() { HangarWindow.HideGUI(); }
protected override void onLeftClick() { HangarWindow.ToggleWithButton(ALButton); }
void onAppLaunchToggleOff() { HangarWindow.HideGUI(); }
void onAppLaunchToggleOn() { HangarWindow.ShowGUI(); }