コード例 #1
0
        public override void SetVisible(bool newValue)
        {
            base.SetVisible(newValue);

            if (newValue == false)
            {
                rosterWindow.SetVisible(false);
            }
        }
コード例 #2
0
 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));
     }
 }