Example #1
0
        void CreateBipropDropdown()
        {
            BiPropellantConfig[] propConfigs = PropellantMixtureLibrary.BiPropConfigs.ToArray();

            string[] propString = new string[propConfigs.Length];

            for (int i = 0; i < propString.Length; ++i)
            {
                propString[i] = propConfigs[i].MixtureTitle;
            }

            biPropellantConfigs = new GUIDropDown <BiPropellantConfig>(propString, propConfigs, 0);
        }
Example #2
0
        void CreatePowerCycleDropdown()
        {
            PowerCycleEnum[] cycleEnum = new PowerCycleEnum[] {
                PowerCycleEnum.PRESSURE_FED, PowerCycleEnum.GAS_GENERATOR,
                PowerCycleEnum.COMBUSTION_TAPOFF, PowerCycleEnum.STAGED_COMBUSTION,
                PowerCycleEnum.CLOSED_EXPANDER, PowerCycleEnum.BLEED_EXPANDER
            };

            string[] cycleString = new string[] {
                "Pressure Fed", "Gas Generator",
                "Combustion Tapoff", "Staged Combustion",
                "Closed Expander", "Bleed Expander"
            };

            powerCycleDropdown = new GUIDropDown <PowerCycleEnum>(cycleString, cycleEnum, 1);
        }