Example #1
0
        public static void Load()
        {
            ShowCellCapacityValue   = PlayerPrefsExtra.GetBool("ShowCellCapacityToggle", false); // keep as a switch
            MarchThroughHealthValue = PlayerPrefs.GetFloat("MarchThroughHealthValueSlider", 3f); // keep as a switch
            MarchThroughPowerValue  = PlayerPrefs.GetFloat("MarchThroughPowerValueSlider", 3f);  // keep as a switch
            SeamothGearValue        = PlayerPrefs.GetFloat("SeamothGearValueSlider", 1f);        // keep as a switch

            // User changeable values
            VehicleFontSizeSliderValue = PlayerPrefs.GetFloat("VehicleFontSizeSlider", 30f);

            ShowKeyPromptToggleValue = PlayerPrefsExtra.GetBool("ShowKeyPromptToggle", true);
            ShowSpeedKmhToggleValue  = PlayerPrefsExtra.GetBool("ShowSpeedKmhToggle", true);

            LightsLoHiKeybindValue = PlayerPrefsExtra.GetKeyCode("LightsLoHiKeybindPress", KeyCode.L);
            CruiseKeybindValue     = PlayerPrefsExtra.GetKeyCode("CruiseKeybindPress", KeyCode.Y);
            ModeKeybindValue       = PlayerPrefsExtra.GetKeyCode("ModeKeybindPress", KeyCode.T);

            GearUpKeybindValue   = PlayerPrefsExtra.GetKeyCode("GearUpKeybindPress", KeyCode.F);
            GearDownKeybindValue = PlayerPrefsExtra.GetKeyCode("GearDownKeybindPress", KeyCode.V);

            HealthKeybindValue = PlayerPrefsExtra.GetKeyCode("HealthKeybindPress", KeyCode.H);
            PowerKeybindValue  = PlayerPrefsExtra.GetKeyCode("PowerKeybindPress", KeyCode.J);

            PowerLowerLimitSliderValue = PlayerPrefs.GetFloat("PowerLowerLimitSlider", 33f);
            PowerUpperLimitSliderValue = PlayerPrefs.GetFloat("PowerUpperLimitSlider", 66f);

            HealthLowerLimitSliderValue = PlayerPrefs.GetFloat("HealthLowerLimitSlider", 33f);
            HealthUpperLimitSliderValue = PlayerPrefs.GetFloat("HealthUpperLimitSlider", 66f);

            TempMothLowerLimitSliderValue = PlayerPrefs.GetFloat("TempMothLowerLimitSlider", 30f);
            TempMothUpperLimitSliderValue = PlayerPrefs.GetFloat("TempMothUpperLimitSlider", 45f);
        } // end public static void Load()
 public static void Load()
 {
     EnableSnapTurning    = PlayerPrefsExtra.GetBool(OptionsMenu.PLAYER_PREF_KEY_TOGGLE_SNAP_TURNING, true);
     SnapAngleChoiceIndex = GetSnapAngleChoiceIndex(SnapType.Default);
     KeybindKeyLeft       = PlayerPrefsExtra.GetKeyCode("SMLHelperExampleModKeybindLeft", KeyCode.LeftArrow);
     KeybindKeyRight      = PlayerPrefsExtra.GetKeyCode("SMLHelperExampleModKeybindRight", KeyCode.RightArrow);
 }
Example #3
0
 public static void Load()
 {
     ChoiceIndex = PlayerPrefs.GetInt("SMLHelperExampleModChoice", 0);
     KeybindKey  = PlayerPrefsExtra.GetKeyCode("SMLHelperExampleModKeybind", KeyCode.X);
     SliderValue = PlayerPrefs.GetFloat("SMLHelperExampleModSlider", 50f);
     ToggleValue = PlayerPrefsExtra.GetBool("SMLHelperExampleModToggle", true);
 }
 public static void Load()
 {
     EnableSnapTurning       = PlayerPrefsExtra.GetBool(Options.PLAYER_PREF_KEY_TOGGLE_SNAP_TURNING, true);
     EnableSeamoth           = PlayerPrefsExtra.GetBool(Options.PLAYER_PREF_KEY_TOGGLE_SEAMOTH, false);
     EnablePrawn             = PlayerPrefsExtra.GetBool(Options.PLAYER_PREF_KEY_TOGGLE_PRAWN, false);
     SnapAngleChoiceIndex    = GetSnapAngleChoiceIndex(SnapType.Default);
     SeamothAngleChoiceIndex = GetSnapAngleChoiceIndex(SnapType.Seamoth);
     PrawnAngleChoiceIndex   = GetSnapAngleChoiceIndex(SnapType.Prawn);
     KeybindKeyLeft          = PlayerPrefsExtra.GetKeyCode("SMLHelperExampleModKeybindLeft", KeyCode.LeftArrow);
     KeybindKeyRight         = PlayerPrefsExtra.GetKeyCode("SMLHelperExampleModKeybindRight", KeyCode.RightArrow);
 }
Example #5
0
        public static void Load()
        {
            UseEnergyToggleValue         = PlayerPrefsExtra.GetBool("UseEnergyToggle", true);
            UseEasyEnergyToggleValue     = PlayerPrefsExtra.GetBool("UseEasyEnergyToggle", false);
            AirVentsAutoToggleValue      = PlayerPrefsExtra.GetBool("AirVentsAutoToggle", true);
            ShowPlayerPromptsToggleValue = PlayerPrefsExtra.GetBool("ShowPlayerPromptsToggle", true);

            ToggleAirVentsKeybindValue = PlayerPrefsExtra.GetKeyCode("ToggleAirVentsKeybindPress", KeyCode.B);

            AirVentsFontSizeSliderValue = PlayerPrefs.GetFloat("AirVentsFontSizeSlider", 25f);
        }
 // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
 public static void Load()
 {
     Config.EnableSnapTurning       = PlayerPrefsExtra.GetBool("SnapTurningTogglePlayerPrefKey", true);
     Config.EnableSeamoth           = PlayerPrefsExtra.GetBool("SnapTurningToggleSeamoth", false);
     Config.EnablePrawn             = PlayerPrefsExtra.GetBool("SnapTurningTogglePrawn", false);
     Config.SnapAngleChoiceIndex    = Config.GetSnapAngleChoiceIndex(SnapType.Default);
     Config.SeamothAngleChoiceIndex = Config.GetSnapAngleChoiceIndex(SnapType.Seamoth);
     Config.PrawnAngleChoiceIndex   = Config.GetSnapAngleChoiceIndex(SnapType.Prawn);
     Config.KeybindKeyLeft          = PlayerPrefsExtra.GetKeyCode("SMLHelperExampleModKeybindLeft", 276);
     Config.KeybindKeyRight         = PlayerPrefsExtra.GetKeyCode("SMLHelperExampleModKeybindRight", 275);
 }
Example #7
0
        public static void Load()
        {
            //ChoiceIndex = PlayerPrefs.GetInt("SMLHelperExampleModChoice", 0);

            WaterHotKey = PlayerPrefsExtra.GetKeyCode("WaterHotKey", KeyCode.K);
            FoodHotKey  = PlayerPrefsExtra.GetKeyCode("FoodHotKey", KeyCode.L);

            TextValue = PlayerPrefs.GetInt("TextValue", 0);

            ToggleWaterHotKey = PlayerPrefsExtra.GetBool("ToggleWaterHotKey", true);
            ToggleFoodHotKey  = PlayerPrefsExtra.GetBool("ToggleFoodHotKey", true);

            WaterPercentage = PlayerPrefs.GetFloat("WaterPercentage", 99.0f);
            FoodPercentage  = PlayerPrefs.GetFloat("FoodPercentage", 99.0f);
        }