void Awake()
 {
     this.Log("Awake");
     button = new ButtonWrapper(new Rect(Screen.width * 0.275f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
                                "LS", "TAC Life Support Build Aid", OnIconClicked, "EditorIcon");
     window = new BuildAidWindow(TacLifeSupport.Instance.globalSettings);
 }
예제 #2
0
 void Awake()
 {
     this.Log("Awake");
     button = new ButtonWrapper(new Rect(Screen.width * 0.275f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
         "LS", "TAC Life Support Build Aid", OnIconClicked, "EditorIcon");
     window = new BuildAidWindow(TacLifeSupport.Instance.globalSettings);
 }
        void Awake()
        {
            this.Log("Awake");
            globalSettings = TacLifeSupport.Instance.globalSettings;
            gameSettings = TacLifeSupport.Instance.gameSettings;
            rosterWindow = new RosterWindow(globalSettings, gameSettings);
            monitoringWindow = new LifeSupportMonitoringWindow(this, globalSettings, gameSettings, rosterWindow);

            button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
                "LS", "TAC Life Support Monitoring Window", OnIconClicked, "FlightIcon");

            configFilename = IOUtils.GetFilePathFor(this.GetType(), "LifeSupport.cfg");

            //Check if DeepFreeze is installed and set bool.
            var DeepFreezeassembly = (from a in AppDomain.CurrentDomain.GetAssemblies()
                    where a.FullName.StartsWith("DeepFreeze")
                    select a).FirstOrDefault();
            if (DeepFreezeassembly != null)
            {
                IsDFInstalled = true;
            }
            else
            {
                IsDFInstalled = false;
            }
        }
예제 #4
0
 public SpaceCenterManager()
 {
     this.Log("Constructor");
     globalSettings = TacLifeSupport.Instance.globalSettings;
     gameSettings   = TacLifeSupport.Instance.gameSettings;
     button         = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
                                        "LS", "TAC Life Support Configuration Window", OnIconClicked, "SpaceCenterIcon");
     configWindow = new SavedGameConfigWindow(globalSettings, gameSettings);
 }
예제 #5
0
 public SpaceCenterManager()
 {
     this.Log("Constructor");
     globalSettings = TacLifeSupport.Instance.globalSettings;
     gameSettings = TacLifeSupport.Instance.gameSettings;
     button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
         "LS", "TAC Life Support Configuration Window", OnIconClicked, "SpaceCenterIcon");
     configWindow = new SavedGameConfigWindow(globalSettings, gameSettings);
 }
예제 #6
0
        void Awake()
        {
            this.Log("Awake");
            globalSettings = BioMass.Instance.globalSettings;
            saveGame = BioMass.Instance.saveGame;
            monitoringWindow = new BioVesselMonitoringWindow(this, globalSettings, saveGame);

            button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), Settings.PathTextures + "/HerbIcon",
                "BM", "BioMass Monitoring", OnIconClicked, "HerbIcon");
        }
예제 #7
0
 public SpaceCenterController()
 {
     this.Log_DebugOnly("Constructor SCC");
     globalSettings = BioMass.Instance.globalSettings;
     saveGame = BioMass.Instance.saveGame;
     button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), Settings.PathTextures+"/HerbIcon",
         "BM", "BioMass Configuration Window", OnIconClicked, "HerbIcon");
     configWindow = new SavedGameConfigWindow(globalSettings, saveGame);
     this.Log(Settings.PathTextures + "/HerbIcon");
 }
예제 #8
0
 public SpaceCenterController()
 {
     this.Log("Constructor SCC");
     globalSettings = BioMass.Instance.globalSettings;
     //saveGame = BioMass.Instance.saveGame;
     /*button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), Settings.PathTextures+"/herbIcon",
         "BM", "BioMass Configuration Window", OnIconClicked, "HerbIcon");*/
     //button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "BioMass/Textures/HerbIcon","BM", "BioMass Configuration Window", OnIconClicked, "HerbIcon");
     button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 36, 36), "BioMass/Textures/bioIcon","BM", "BioMass Configuration Window", OnIconClicked, "bioIcon");
     configWindow = new SavedGameConfigWindow(globalSettings);
     this.Log(Settings.PathTextures + "/bioIcon");
 }
        void Awake()
        {
            this.Log("Awake");
            globalSettings = TacLifeSupport.Instance.globalSettings;
            gameSettings = TacLifeSupport.Instance.gameSettings;
            rosterWindow = new RosterWindow(globalSettings, gameSettings);
            monitoringWindow = new LifeSupportMonitoringWindow(this, globalSettings, gameSettings, rosterWindow);

            button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
                "LS", "TAC Life Support Monitoring Window", OnIconClicked, "FlightIcon");

            configFilename = IOUtils.GetFilePathFor(this.GetType(), "LifeSupport.cfg");
        }
        void Awake()
        {
            this.Log("Awake");
            globalSettings   = TacLifeSupport.Instance.globalSettings;
            gameSettings     = TacLifeSupport.Instance.gameSettings;
            rosterWindow     = new RosterWindow(globalSettings, gameSettings);
            monitoringWindow = new LifeSupportMonitoringWindow(this, globalSettings, gameSettings, rosterWindow);

            button = new ButtonWrapper(new Rect(Screen.width * 0.75f, 0, 32, 32), "ThunderAerospace/TacLifeSupport/Textures/greenIcon",
                                       "LS", "TAC Life Support Monitoring Window", OnIconClicked, "FlightIcon");

            configFilename = IOUtils.GetFilePathFor(this.GetType(), "LifeSupport.cfg");
        }
예제 #11
0
        void Awake()
        {
            this.Log("Awake");
            configFilename = IOUtils.GetFilePathFor(this.GetType(), "FuelBalancer.cfg");

            settings = new Settings();

            settingsWindow = new SettingsWindow(settings);
            helpWindow     = new HelpWindow();
            mainWindow     = new MainWindow(this, settings, settingsWindow, helpWindow);

            button = new ButtonWrapper(new Rect(Screen.width * 0.7f, 0, 32, 32),
                                       "TacFuelBalancer/Textures/button", "FB",
                                       "TAC Fuel Balancer", OnIconClicked);

            resources       = new Dictionary <string, ResourceInfo>();
            numberOfParts   = 0;
            vesselSituation = Vessel.Situations.PRELAUNCH;
        }
        void Awake()
        {
            this.Log("Awake");
            configFilename = IOUtils.GetFilePathFor(this.GetType(), "FuelBalancer.cfg");

            settings = new Settings();

            settingsWindow = new SettingsWindow(settings);
            helpWindow = new HelpWindow();
            mainWindow = new MainWindow(this, settings, settingsWindow, helpWindow);

            button = new ButtonWrapper(new Rect(Screen.width * 0.7f, 0, 32, 32),
                "ThunderAerospace/TacFuelBalancer/Textures/button", "FB",
                "TAC Fuel Balancer", OnIconClicked);

            resources = new Dictionary<string, ResourceInfo>();
            numberOfParts = 0;
            vesselSituation = Vessel.Situations.PRELAUNCH;
        }