Ejemplo n.º 1
0
        public static void Initial()
        {
            var cfgFileExists = LoadConfigFile("dewrito_prefs.cfg", ref ConfigFile);

            if (!cfgFileExists)
            {
                ;
                SetVariable("Player.Representation", Customization.GetPrefsFromRace(Customization.DEFAULT_RACE), ref ConfigFile, false);
                SetVariable("Player.Armor.Accessory", "air_assault", ref ConfigFile, false);
                SetVariable("Player.Armor.Arms", Customization.Spartan.GetPrefsFromShoulder(Customization.Spartan.DEFAULT_RIGHT_SHOULDER), ref ConfigFile, false);
                SetVariable("Player.Armor.Chest", Customization.Spartan.GetPrefsFromChest(Customization.Spartan.DEFAULT_CHEST), ref ConfigFile, false);
                SetVariable("Player.Armor.Helmet", Customization.Spartan.GetPrefsFromHelmet(Customization.Spartan.DEFAULT_HELMET), ref ConfigFile, false);
                SetVariable("Player.Armor.Legs", "air_assault", ref ConfigFile, false);
                SetVariable("Player.Armor.Pelvis", "", ref ConfigFile, false);
                SetVariable("Player.Armor.Shoulders", Customization.Spartan.GetPrefsFromShoulder(Customization.Spartan.DEFAULT_LEFT_SHOULDER), ref ConfigFile, false);
                SetVariable("Player.Colors.Primary", Customization.GetPrefsFromColor(Customization.DEFAULT_PRIMARY_COLOR), ref ConfigFile, false);
                SetVariable("Player.Colors.Secondary", Customization.GetPrefsFromColor(Customization.DEFAULT_SECONDARY_COLOR), ref ConfigFile, false);
                SetVariable("Player.Colors.Visor", Customization.GetPrefsFromColor(Customization.DEFAULT_DETAIL_COLOR), ref ConfigFile, false);
                SetVariable("Player.Colors.Lights", "#000000", ref ConfigFile, false);
                SetVariable("Player.Colors.Holo", "#000000", ref ConfigFile, false);
            }
        }