void OnGUIAppLauncherReady() { if (ApplicationLauncher.Ready && _appLauncherButton == null) { _appLauncherButton = ApplicationLauncher.Instance.AddModApplication( () => window.SetVisible(true), () => window.SetVisible(false), () => { }, () => { }, () => { }, () => { }, ApplicationLauncher.AppScenes.SPH | ApplicationLauncher.AppScenes.VAB, GameDatabase.Instance.GetTexture("ThunderAerospace/TacLifeSupport/Textures/greenIcon", false)); } }
void Start() { this.Log("Start"); if (TacLifeSupport.Instance.gameSettings.Enabled) { button.Visible = true; } else { button.Visible = false; window.SetVisible(false); } }
void OnGUI() { window.SetVisible(TACMenuAppLToolBar.GuiVisible); window?.OnGUI(); }