| | 1 | | using System; |
| | 2 | |
|
| | 3 | | namespace DCL.SettingsCommon.SettingsControllers.BaseControllers |
| | 4 | | { |
| | 5 | | /// <summary> |
| | 6 | | /// This controller is in charge of manage all the base logic related to a SLIDER CONTROL. |
| | 7 | | /// </summary> |
| | 8 | | public class SliderSettingsControlController : SettingsControlController |
| | 9 | | { |
| | 10 | | public event Action<string> OnIndicatorLabelChange; |
| | 11 | | public event Action<float> SliderValueChanged; |
| | 12 | |
|
| | 13 | | protected void RaiseOnIndicatorLabelChange(string newIndicatorLabel) => |
| 8 | 14 | | OnIndicatorLabelChange?.Invoke(newIndicatorLabel); |
| | 15 | |
|
| | 16 | | protected void RaiseSliderValueChanged(float newValue) => |
| 0 | 17 | | SliderValueChanged?.Invoke(newValue); |
| | 18 | | } |
| | 19 | | } |