Exemple #1
0
 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);
     }
 }
Exemple #2
0
 public void ShowUI()
 {
     HangarWindow.ShowGUI();
 }
Exemple #3
0
 public void HideUI()
 {
     HangarWindow.HideGUI();
 }
 protected override void onLeftClick()
 {
     HangarWindow.ToggleWithButton(ALButton);
 }
Exemple #5
0
 void onAppLaunchToggleOff()
 {
     HangarWindow.HideGUI();
 }
Exemple #6
0
 void onAppLaunchToggleOn()
 {
     HangarWindow.ShowGUI();
 }