public static void Unapplied_SetTextureQuality(TextureQual _qual) { curTextureQual = _qual; }
public OptionsData(SerializationInfo info, StreamingContext ctxt) { controls_SensitivityX = (float)info.GetValue("controls_SensitivityX", typeof(float)); controls_SensitivityY = (float)info.GetValue("controls_SensitivityY", typeof(float)); controls_InvertMouse = (bool)info.GetValue("controls_InvertMouse", typeof(bool)); controls_UseMouseWheelToChangeWeapon = (bool)info.GetValue("controls_UseMouseWheelToChangeWeapon", typeof(bool)); controls_MoveLeft_Primary = (KeyCode)info.GetValue("controls_MoveLeft_Primary", typeof(KeyCode)); controls_MoveLeft_Secondary = (KeyCode)info.GetValue("controls_MoveLeft_Secondary", typeof(KeyCode)); controls_MoveRight_Primary = (KeyCode)info.GetValue("controls_MoveRight_Primary", typeof(KeyCode)); controls_MoveRight_Secondary = (KeyCode)info.GetValue("controls_MoveRight_Secondary", typeof(KeyCode)); controls_MoveForward_Primary = (KeyCode)info.GetValue("controls_MoveForward_Primary", typeof(KeyCode)); controls_MoveForward_Secondary = (KeyCode)info.GetValue("controls_MoveForward_Secondary", typeof(KeyCode)); controls_MoveBackward_Primary = (KeyCode)info.GetValue("controls_MoveBackward_Primary", typeof(KeyCode)); controls_MoveBackward_Secondary = (KeyCode)info.GetValue("controls_MoveBackward_Secondary", typeof(KeyCode)); controls_Jump_Primary = (KeyCode)info.GetValue("controls_Jump_Primary", typeof(KeyCode)); controls_Jump_Secondary = (KeyCode)info.GetValue("controls_Jump_Secondary", typeof(KeyCode)); controls_Sprint_SnipeSteady_Primary = (KeyCode)info.GetValue("controls_Sprint_SnipeSteady_Primary", typeof(KeyCode)); controls_Sprint_SnipeSteady_Secondary = (KeyCode)info.GetValue("controls_Sprint_SnipeSteady_Secondary", typeof(KeyCode)); controls_Crouch_Primary = (KeyCode)info.GetValue("controls_Crouch_Primary", typeof(KeyCode)); controls_Crouch_Secondary = (KeyCode)info.GetValue("controls_Crouch_Secondary", typeof(KeyCode)); controls_Action_Primary = (KeyCode)info.GetValue("controls_Action_Primary", typeof(KeyCode)); controls_Action_Secondary = (KeyCode)info.GetValue("controls_Action_Secondary", typeof(KeyCode)); controls_Fire_Primary = (KeyCode)info.GetValue("controls_Fire_Primary", typeof(KeyCode)); controls_Fire_Secondary = (KeyCode)info.GetValue("controls_Fire_Secondary", typeof(KeyCode)); controls_Aim_Primary = (KeyCode)info.GetValue("controls_Aim_Primary", typeof(KeyCode)); controls_Aim_Secondary = (KeyCode)info.GetValue("controls_Aim_Secondary", typeof(KeyCode)); controls_ChangeGun_Primary = (KeyCode)info.GetValue("controls_ChangeGun_Primary", typeof(KeyCode)); controls_ChangeGun_Secondary = (KeyCode)info.GetValue("controls_ChangeGun_Secondary", typeof(KeyCode)); controls_Grenade_SnipeTimeController_Primary = (KeyCode)info.GetValue("controls_Grenade_SnipeTimeController_Primary", typeof(KeyCode)); controls_Grenade_SnipeTimeController_Secondary = (KeyCode)info.GetValue("controls_Grenade_SnipeTimeController_Secondary", typeof(KeyCode)); controls_Melee_Primary = (KeyCode)info.GetValue("controls_Melee_Primary", typeof(KeyCode)); controls_Melee_Secondary = (KeyCode)info.GetValue("controls_Melee_Secondary", typeof(KeyCode)); controls_Reload_Primary = (KeyCode)info.GetValue("controls_Reload_Primary", typeof(KeyCode)); controls_Reload_Secondary = (KeyCode)info.GetValue("controls_Reload_Secondary", typeof(KeyCode)); controls_Missions_Primary = (KeyCode)info.GetValue("controls_Missions_Primary", typeof(KeyCode)); controls_Missions_Secondary = (KeyCode)info.GetValue("controls_Missions_Secondary", typeof(KeyCode)); // audio_GeneralVolume = (float)info.GetValue("audio_GeneralVolume", typeof(float)); audio_MusicVolume = (float)info.GetValue("audio_MusicVolume", typeof(float)); audio_SFXVolume = (float)info.GetValue("audio_SFXVolume", typeof(float)); audio_VoiceVolume = (float)info.GetValue("audio_VoiceVolume", typeof(float)); // video_ResolutionIndex = (int)info.GetValue("video_ResolutionIndex", typeof(int)); video_VSync = (bool)info.GetValue("video_VSync", typeof(bool)); video_Brightness = (float)info.GetValue("video_Brightness", typeof(float)); video_LODBias = (float)info.GetValue("video_LODBias", typeof(float)); video_Type = (VideoSettingTypes)info.GetValue("video_Type", typeof(VideoSettingTypes)); video_IsShadowOn = (bool)info.GetValue("video_IsShadowOn", typeof(bool)); video_ShadowQual = (ShadowQual)info.GetValue("video_ShadowQual", typeof(ShadowQual)); video_ShadowDistance = (float)info.GetValue("video_ShadowDistance", typeof(float)); video_TextureQual = (TextureQual)info.GetValue("video_TextureQual", typeof(TextureQual)); video_UseSSAO = (bool)info.GetValue("video_UseSSAO", typeof(bool)); video_UseAnisotropic = (bool)info.GetValue("video_UseAnisotropic", typeof(bool)); video_UseBloom = (bool)info.GetValue("video_UseBloom", typeof(bool)); }