public override void UpdateSetting(object newValue) { int newIntValue = (int)newValue; currentGeneralSettings.voiceChatAllow = (SettingsData.GeneralSettings.VoiceChatAllow)newIntValue; WebInterface.ApplySettings(currentGeneralSettings.voiceChatVolume, newIntValue); }
public override void UpdateSetting(object newValue) { currentGeneralSettings.voiceChatVolume = (float)newValue * 0.01f; WebInterface.ApplySettings(currentGeneralSettings.voiceChatVolume, (int)currentGeneralSettings.voiceChatAllow); }