| | 1 | | using DCL; |
| | 2 | | using DCL.SettingsCommon.SettingsControllers.BaseControllers; |
| | 3 | | using UnityEngine; |
| | 4 | |
|
| | 5 | | namespace MainScripts.DCL.Controllers.Settings.SettingsControllers.SpecificControllers |
| | 6 | | { |
| | 7 | | [CreateAssetMenu(menuName = "Settings/Controllers/Controls/Profanity Chat Filtering", fileName = "ProfanityChatFilte |
| | 8 | | public class ProfanityChatFilterControlController : ToggleSettingsControlController |
| | 9 | | { |
| 1 | 10 | | public override object GetStoredValue() { return currentGeneralSettings.profanityChatFiltering; } |
| | 11 | |
|
| | 12 | | public override void UpdateSetting(object newValue) |
| | 13 | | { |
| 1 | 14 | | var value = (bool) newValue; |
| 1 | 15 | | currentGeneralSettings.profanityChatFiltering = value; |
| 1 | 16 | | DataStore.i.settings.profanityChatFilteringEnabled.Set(value); |
| 1 | 17 | | } |
| | 18 | | } |
| | 19 | | } |