示例#1
0
        public VOID_SurfAtmo()
        {
            this.Name = "Surface & Atmospheric Info";

            this.WindowPos.x = Screen.width - 260f;
            this.WindowPos.y = 85;

            this._precisionValues = (VOID_SaveValue <long>) 384307168202282325;
        }
示例#2
0
        public VOID_StageInfo() : base()
        {
            this.Name     = "Stage Information";
            this.defWidth = 20f;
            this.bodyIdx  = (VOID_SaveValue <int>) 4;

            this.stylesApplied = false;
            this.showBodyList  = false;

            this.bodyListPos = new Rect();

            this.stageTable = new Table();

            this.stageNumberCol = new Table.Column <int>("Stage", 20f);
            this.stageTable.Add(this.stageNumberCol);

            this.stageDeltaVCol        = new Table.Column <double>("DeltaV [m/s]", 20f);
            this.stageDeltaVCol.Format = "S2";
            this.stageTable.Add(this.stageDeltaVCol);

            this.stageTotalDVCol        = new Table.Column <double>("Total ΔV [m/s]", 20f);
            this.stageTotalDVCol.Format = "S2";
            this.stageTable.Add(this.stageTotalDVCol);

            this.stageInvertDVCol        = new Table.Column <double>("Invert ΔV [m/s]", 20f);
            this.stageInvertDVCol.Format = "S2";
            this.stageTable.Add(this.stageInvertDVCol);

            this.stageMassCol        = new Table.Column <double>("Mass [Mg]", 20f);
            this.stageMassCol.Format = "#.#";
            this.stageTable.Add(this.stageMassCol);

            this.stageTotalMassCol        = new Table.Column <double>("Total [Mg]", 20f);
            this.stageTotalMassCol.Format = "#.#";
            this.stageTable.Add(this.stageTotalMassCol);

            this.stageThrustCol        = new Table.Column <double>("Thrust [N]", 20f);
            this.stageThrustCol.Format = "S2";
            this.stageTable.Add(this.stageThrustCol);

            this.stageTWRCol        = new Table.Column <double>("T/W Ratio", 20f);
            this.stageTWRCol.Format = "#.#";
            this.stageTable.Add(this.stageTWRCol);

            this.stageTimeCol = new Table.Column <string>("Burn Time", 20f);
            this.stageTable.Add(this.stageTimeCol);

            this.showAdvanced = false;

            this.useSeaLevel = (VOID_SaveValue <bool>)false;

            seaLevelToggle = new GUIContent(
                "Use Sea Level",
                "Use 'sea' level atmospheric conditions on bodies with atmospheres."
                );
        }
示例#3
0
        public VOID_Rendezvous()
        {
            this.Name = "Rendezvous Information";

            this.WindowPos.x = 845;
            this.WindowPos.y = 85;

            this.untoggleRegisterInfo  = (VOID_SaveValue <bool>)false;
            this.toggleExtendedOrbital = (VOID_SaveValue <bool>)false;
        }
示例#4
0
        public VOID_Orbital()
        {
            this.Name = "Orbital Information";

            this.WindowPos.x = Screen.width - 520f;
            this.WindowPos.y = 250f;

            this.toggleExtended = (VOID_SaveValue <bool>)false;

            this._precisionValues = (VOID_SaveValue <long>) 384307168202282325;
        }
示例#5
0
        public VOID_CBInfoBrowser()
        {
            this.Name = "Celestial Body Information Browser";

            this.WindowPos.x = 10;
            this.WindowPos.y = 85;

            this.selectedBodyIdx1 = (VOID_SaveValue <int>) 1;
            this.selectedBodyIdx2 = (VOID_SaveValue <int>) 2;

            this.toggleOrbital  = (VOID_SaveValue <bool>)false;
            this.togglePhysical = (VOID_SaveValue <bool>)false;
            this.toggleScience  = (VOID_SaveValue <bool>)false;
        }
        public VOID_VesselRegister() : base()
        {
            this.Name = "Vessel Register";

            this.WindowPos.x = 845;
            this.WindowPos.y = 275;
            this.defHeight   = 375;

            this.selectedBodyIdx       = (VOID_SaveValue <int>) 0;
            this.selectedVesselTypeIdx = (VOID_SaveValue <int>) 0;

            this.vesselSituation = "Orbiting";

            this.selectorScrollPos = new Vector2();
        }
示例#7
0
        public VOIDCore_Generic()
        {
            System.Version version = this.GetType().Assembly.GetName().Version;

            this.VoidVersion = string.Format("{0}.{1}.{2}", version.Major, version.Minor, version.MajorRevision);

            this.Name = string.Format("VOID {0}", this.VoidVersion.ToString());

            this.powerAvailable = true;

            this.Active = true;

            this.skinName = (VOID_SaveValue <string>) this.defaultSkin;
            this.skinIdx  = int.MinValue;

            this.VOIDIconOnActivePath    = "VOID/Textures/void_icon_light_glow";
            this.VOIDIconOnInactivePath  = "VOID/Textures/void_icon_dark_glow";
            this.VOIDIconOffActivePath   = "VOID/Textures/void_icon_light";
            this.VOIDIconOffInactivePath = "VOID/Textures/void_icon_dark";

            this.saveTimer   = 0f;
            this.UpdateTimer = 0f;

            this.vesselSimActive = (VOID_SaveValue <bool>)true;

            this.useToolbarManager = (VOID_SaveValue <bool>)ToolbarManager.ToolbarAvailable;

            this.SaveGamePath     = string.Format("{0}saves/{1}", IOTools.KSPRootPath, HighLogic.SaveFolder);
            this.VOIDSettingsPath = string.Format("{0}/VOIDConfig.xml", this.SaveGamePath);

            this.FactoryReset = false;

            GameEvents.onHideUI.Add(() =>
            {
                this.gameUIHidden = true;
                this.StopGUI();
            }
                                    );

            GameEvents.onShowUI.Add(() =>
            {
                this.gameUIHidden = false;
                this.StartGUI();
            }
                                    );
        }
示例#8
0
        public VOID_HUDModule() : base()
        {
            this._colorIndex = (VOID_SaveValue <int>) 0;

            this.textColors = new List <Color>();

            this.textColors.Add(Color.green);
            this.textColors.Add(Color.black);
            this.textColors.Add(Color.white);
            this.textColors.Add(Color.red);
            this.textColors.Add(Color.blue);
            this.textColors.Add(Color.yellow);
            this.textColors.Add(Color.gray);
            this.textColors.Add(Color.cyan);
            this.textColors.Add(Color.magenta);

            this.positionsLocked = (VOID_SaveValue <bool>)true;

            this.Windows = new List <HUDWindow>();
        }
示例#9
0
        public VOID_DataLogger()
        {
            this.Name = "CSV Data Logger";

            this.loggingActive = false;
            this.firstWrite    = true;

            this.waitForLaunch = (VOID_SaveValue <bool>)true;

            this.logInterval     = (VOID_SaveValue <float>) 0.5f;
            this.csvCollectTimer = (VOID_SaveValue <float>) 0f;

            this.outstandingWrites = 0;

            this.WindowPos.x = Screen.width - 520f;
            this.WindowPos.y = 85f;

            this.core.onApplicationQuit += delegate(object sender)
            {
                this.CloseFileIfOpen();
            };
        }
示例#10
0
 /*
  * Methods
  * */
 public VOID_Module()
 {
     this.active      = (VOID_SaveValue <bool>)false;
     this.lastUpdate  = 0;
     this.saveKeyName = this.GetType().Name;
 }