// Token: 0x06000606 RID: 1542 RVA: 0x000334BC File Offset: 0x000316BC private void SaveSettings() { PlayerPrefs.SetFloat("MasterVolume", this.m_volumeSlider.value); PlayerPrefs.SetFloat("MouseSensitivity", this.m_sensitivitySlider.value); PlayerPrefs.SetFloat("MusicVolume", this.m_musicVolumeSlider.value); PlayerPrefs.SetFloat("SfxVolume", this.m_sfxVolumeSlider.value); PlayerPrefs.SetInt("ContinousMusic", this.m_continousMusic.isOn ? 1 : 0); PlayerPrefs.SetInt("InvertMouse", this.m_invertMouse.isOn ? 1 : 0); PlayerPrefs.SetFloat("GuiScale", this.m_guiScaleSlider.value / 100f); PlayerPrefs.SetInt("CameraShake", this.m_cameraShake.isOn ? 1 : 0); PlayerPrefs.SetInt("ShipCameraTilt", this.m_shipCameraTilt.isOn ? 1 : 0); PlayerPrefs.SetInt("QuickPieceSelect", this.m_quickPieceSelect.isOn ? 1 : 0); PlayerPrefs.SetInt("KeyHints", this.m_showKeyHints.isOn ? 1 : 0); PlayerPrefs.SetInt("DOF", this.m_dofToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("VSync", this.m_vsyncToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("Bloom", this.m_bloomToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("SSAO", this.m_ssaoToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("SunShafts", this.m_sunshaftsToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("AntiAliasing", this.m_aaToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("ChromaticAberration", this.m_caToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("MotionBlur", this.m_motionblurToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("SoftPart", this.m_softPartToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("Tesselation", this.m_tesselationToggle.isOn ? 1 : 0); PlayerPrefs.SetInt("ShadowQuality", (int)this.m_shadowQuality.value); PlayerPrefs.SetInt("LodBias", (int)this.m_lod.value); PlayerPrefs.SetInt("Lights", (int)this.m_lights.value); PlayerPrefs.SetInt("ClutterQuality", (int)this.m_vegetation.value); ZInput.SetGamepadEnabled(this.m_gamepadEnabled.isOn); ZInput.instance.Save(); if (GameCamera.instance) { GameCamera.instance.ApplySettings(); } if (CameraEffects.instance) { CameraEffects.instance.ApplySettings(); } if (ClutterSystem.instance) { ClutterSystem.instance.ApplySettings(); } if (MusicMan.instance) { MusicMan.instance.ApplySettings(); } if (GameCamera.instance) { GameCamera.instance.ApplySettings(); } if (KeyHints.instance) { KeyHints.instance.ApplySettings(); } Settings.ApplyQualitySettings(); this.ApplyMode(); PlayerController.m_mouseSens = this.m_sensitivitySlider.value; PlayerController.m_invertMouse = this.m_invertMouse.isOn; Localization.instance.SetLanguage(this.m_languageKey); GuiScaler.LoadGuiScale(); PlayerPrefs.Save(); }