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