| | 1 | | using DCL.SettingsCommon.SettingsControllers.BaseControllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers |
| | 5 | | { |
| | 6 | | [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Allow Voice Chat", fileName = "AllowVoiceChatControlContr |
| | 7 | | public class AllowVoiceChatControlController : SpinBoxSettingsControlController |
| | 8 | | { |
| 2 | 9 | | public override object GetStoredValue() { return (int)currentGeneralSettings.voiceChatAllow; } |
| | 10 | |
|
| | 11 | | public override void UpdateSetting(object newValue) |
| | 12 | | { |
| 2 | 13 | | int newIntValue = (int)newValue; |
| 2 | 14 | | currentGeneralSettings.voiceChatAllow = (GeneralSettings.VoiceChatAllow)newIntValue; |
| 2 | 15 | | Settings.i.ApplyVoiceChatSettings(); |
| 2 | 16 | | } |
| | 17 | | } |
| | 18 | | } |