public RosterWindow(AppLauncherToolBar TACMenuAppLToolBar, GlobalSettings globalSettings, TacGameSettings gameSettings)
            : base(TACMenuAppLToolBar, "Life Support Crew Roster", 320, 200)
        {
            this.globalSettings = globalSettings;
            this.gameSettings   = gameSettings;

            SetVisible(true);
        }
Exemple #2
0
 public RosterWindow(AppLauncherToolBar TACMenuAppLToolBar, GlobalSettings globalSettings, TacGameSettings gameSettings)
     : base(TACMenuAppLToolBar, Localizer.Format("#autoLOC_TACLS_00026"), 370, 200) // #autoLOC_TACLS_00026 = Life Support Crew Roster
 {
     this.globalSettings = globalSettings;
     this.gameSettings   = gameSettings;
     cacheLocalStrings();
     SetVisible(true);
 }
Exemple #3
0
 public void Awake()
 {
     _aYsettings         = AmpYear.Instance.AYsettings;
     AYSCMenuAppLToolBar = new AppLauncherToolBar(Localizer.Format("#autoLOC_AmpYear_1000001"), Localizer.Format("#autoLOC_AmpYear_1000001"), //#autoLOC_AmpYear_1000001 = AmpYear
                                                  Textures.PathToolbarIconsPath + "/AYGreenOffTB",
                                                  ApplicationLauncher.AppScenes.SPACECENTER,
                                                  (Texture)Textures.IconGreenOn, (Texture)Textures.IconGreenOff,
                                                  GameScenes.SPACECENTER);
     Utilities.Log_Debug("AYSCController Awake complete");
 }
 void Awake()
 {
     this.Log("Awake");
     TACMenuAppLToolBar = new AppLauncherToolBar("TACLifeSupport", "TAC Life Support",
                                                 Textures.PathToolbarIconsPath + "/TACgreenIconTB",
                                                 ApplicationLauncher.AppScenes.SPH | ApplicationLauncher.AppScenes.VAB,
                                                 (Texture)Textures.GrnApplauncherIcon, (Texture)Textures.GrnApplauncherIcon,
                                                 GameScenes.EDITOR);
     window = new BuildAidWindow(TACMenuAppLToolBar, TacStartOnce.Instance.globalSettings);
 }
Exemple #5
0
 public LifeSupportMonitoringWindow(AppLauncherToolBar TACMenuAppLToolBar, RosterWindow rosterWindow)
     : base(TACMenuAppLToolBar, Localizer.Format("#autoLOC_TACLS_00001"), 300, 300)
 {
     this.rosterWindow   = rosterWindow;
     version             = Utilities.GetDllVersion(this);
     DeepFreezeInstalled = RSTUtils.Utilities.IsModInstalled("DeepFreeze");
     cacheLocalStrings();
     windowPos.y = 75;
     SetVisible(true);
 }
        public LifeSupportMonitoringWindow(AppLauncherToolBar TACMenuAppLToolBar, RosterWindow rosterWindow)
            : base(TACMenuAppLToolBar, "Life Support Monitoring", 300, 300)
        {
            //this.gameSettings = gameSettings;
            this.rosterWindow   = rosterWindow;
            version             = Utilities.GetDllVersion(this);
            DeepFreezeInstalled = RSTUtils.Utilities.IsModInstalled("DeepFreeze");

            windowPos.y = 75;
            SetVisible(true);
        }
        public void Awake()
        {
            instance          = this;
            _startwindowId    = Utilities.getnextrandomInt();
            _hoverwindowId    = Utilities.getnextrandomInt();
            _RBwindowId       = Utilities.getnextrandomInt();
            _settingswindowId = Utilities.getnextrandomInt();

            RBMenuAppLToolBar = new AppLauncherToolBar("ResearchBodies", "ResearchBodies",
                                                       Textures.PathToolbarIconsPath + "/RBToolBaricon",
                                                       ApplicationLauncher.AppScenes.SPACECENTER,
                                                       (Texture)Textures.ApplauncherIcon, (Texture)Textures.ApplauncherIcon,
                                                       GameScenes.SPACECENTER);
        }
Exemple #8
0
        protected Window(AppLauncherToolBar tacMenuAppLToolBar, string windowTitle, float defaultWidth, float defaultHeight)
        {
            this.windowTitle   = windowTitle;
            this.windowId      = windowTitle.GetHashCode() + new System.Random().Next(65536);
            TACMenuAppLToolBar = tacMenuAppLToolBar;

            configNodeName = windowTitle.Replace(" ", "");

            windowPos = new Rect((Screen.width - defaultWidth) / 2, (Screen.height - defaultHeight) / 2, defaultWidth, defaultHeight);
            mouseDown = false;
            visible   = false;

            resizeContent = (Textures.BtnResize != null) ? new GUIContent(Textures.BtnResize, "Drag to resize the window.") : new GUIContent("R", "Drag to resize the window.");

            Resizable       = true;
            HideCloseButton = false;
            HideWhenPaused  = true;
        }
        public void Awake()
        {
            Utilities.Log("TSTMenu awake in " + HighLogic.LoadedScene);
            if (HighLogic.LoadedScene != GameScenes.SPACECENTER && HighLogic.LoadedScene != GameScenes.FLIGHT)
            {
                Utilities.Log("TSTMenu Not SpaceCenter or Flight Scene, Destroying this instance.");
                Destroy(this);
            }
            TSTwindowID = Utilities.getnextrandomInt();
            FTTwindowID = Utilities.getnextrandomInt();
            SCwindowID  = Utilities.getnextrandomInt();
            RT2Present  = Utilities.IsRTInstalled;

            TSTMenuAppLToolBar = new AppLauncherToolBar("TST", "Tarsier Space Tech",
                                                        "TarsierSpaceTech/Icons/ToolbarIcon",
                                                        (ApplicationLauncher.AppScenes.SPACECENTER | ApplicationLauncher.AppScenes.FLIGHT),
                                                        GameDatabase.Instance.GetTexture("TarsierSpaceTech/Icons/TSTIconOn", false), GameDatabase.Instance.GetTexture("TarsierSpaceTech/Icons/TSTIconOff", false),
                                                        GameScenes.SPACECENTER, GameScenes.FLIGHT);

            Utilities.Log("Awake complete");
        }
        public void Awake()
        {
            Utilities.Log("TSTMenu awake in " + HighLogic.LoadedScene);
            if (HighLogic.LoadedScene != GameScenes.SPACECENTER && HighLogic.LoadedScene != GameScenes.FLIGHT)
            {
                Utilities.Log("TSTMenu Not SpaceCenter or Flight Scene, Destroying this instance.");
                Destroy(this);
            }
            CacheStrings();
            TSTwindowID = Utilities.getnextrandomInt();
            FTTwindowID = Utilities.getnextrandomInt();
            RT2Present  = Utilities.IsRTInstalled;

            TSTMenuAppLToolBar = new AppLauncherToolBar(Localizer.Format("#autoLOC_TST_0234"), Localizer.Format("#autoLOC_TST_0235"), //#autoLOC_TST_0234 = TST #autoLOC_TST_0235 = Tarsier Space Tech
                                                        "TarsierSpaceTech/Icons/ToolbarIcon",
                                                        (ApplicationLauncher.AppScenes.FLIGHT),
                                                        GameDatabase.Instance.GetTexture("TarsierSpaceTech/Icons/TSTIconOn", false), GameDatabase.Instance.GetTexture("TarsierSpaceTech/Icons/TSTIconOff", false),
                                                        GameScenes.FLIGHT);

            GameEvents.onGameSceneSwitchRequested.Add(onGameSceneSwitchRequested);
            GameEvents.onVesselSwitching.Add(onVesselSwitching);

            Utilities.Log("Awake complete");
        }
Exemple #11
0
 public BuildAidWindow(AppLauncherToolBar TACMenuAppLToolBar, GlobalSettings globalSettings)
     : base(TACMenuAppLToolBar, Localizer.Format("#autoLOC_TACLS_00013"), 300, 180) //#autoLOC_TACLS_00013 = Life Support Build Aid
 {
     this.globalSettings = globalSettings;
     cacheLocalStrings();
 }
Exemple #12
0
 public BuildAidWindow(AppLauncherToolBar TACMenuAppLToolBar, GlobalSettings globalSettings)
     : base(TACMenuAppLToolBar, "Life Support Build Aid", 300, 180)
 {
     this.globalSettings = globalSettings;
 }