| | 1 | | using DCL.SettingsCommon.SettingsControllers.BaseControllers; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace DCL.SettingsCommon.SettingsControllers.SpecificControllers |
| | 5 | | { |
| | 6 | | [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Voice Chat Volume", fileName = "VoiceChatVolumeControlCon |
| | 7 | | public class VoiceChatVolumeControlController : SliderSettingsControlController |
| | 8 | | { |
| 2 | 9 | | public override object GetStoredValue() { return currentAudioSettings.voiceChatVolume * 100; } |
| | 10 | |
|
| | 11 | | public override void UpdateSetting(object newValue) |
| | 12 | | { |
| 2 | 13 | | currentAudioSettings.voiceChatVolume = (float)newValue * 0.01f; |
| 2 | 14 | | Settings.i.ApplyVoiceChatSettings(); |
| 2 | 15 | | } |
| | 16 | | } |
| | 17 | | } |