public override void SetVisible(bool newValue) { base.SetVisible(newValue); if (newValue == false) { rosterWindow.SetVisible(false); } }
void OnGUIAppLauncherReady() { if (ApplicationLauncher.Ready && _appLauncherButton == null) { _appLauncherButton = ApplicationLauncher.Instance.AddModApplication( () => monitoringWindow.SetVisible(true), () => { monitoringWindow.SetVisible(false); rosterWindow.SetVisible(false); }, () => { }, () => { }, () => { }, () => { }, ApplicationLauncher.AppScenes.FLIGHT | ApplicationLauncher.AppScenes.TRACKSTATION, GameDatabase.Instance.GetTexture("ThunderAerospace/TacLifeSupport/Textures/greenIcon", false)); } }