Beispiel #1
0
        private void Start()
        {
            if (appBtn == null)
            {
                Texture2D tex = Asset.Texture2D.LoadFromFile("gpws");
                appBtn = Toolbar.Button.Create(this
                                               , KSP.UI.Screens.ApplicationLauncher.AppScenes.FLIGHT
                                               , tex, tex
                                               , GPWS.Version.FriendlyName
                                               );
                appBtn.Toolbar.Add(Toolbar.Button.ToolbarEvents.Kind.Active
                                   , new Toolbar.Button.Event(this.onAppLaunchToggleOnOff, this.onAppLaunchToggleOnOff)
                                   );
                ToolbarController.Instance.Add(appBtn);
                ToolbarController.Instance.ButtonsActive(!Settings.UseBlizzy78Toolbar, Settings.UseBlizzy78Toolbar);
            }

            if (Settings.guiIsActive)
            {
                SettingGui.toggleSettingGui(true);
            }
        }
Beispiel #2
0
 private void onAppLaunchToggleOnOff()
 {
     SettingGui.toggleSettingGui();
 }