diff --git a/isometric-park-fna/UI/OptionsWindow.cs b/isometric-park-fna/UI/OptionsWindow.cs --- a/isometric-park-fna/UI/OptionsWindow.cs +++ b/isometric-park-fna/UI/OptionsWindow.cs @@ -154,7 +154,7 @@ ImGui.SameLine(); ImGui.DragFloat("##Sfx", ref newSoundEffectVolume, 0.005f, 0.0f, 1.0f, "%.2f"); ImGui.SameLine(); - ImGui.Checkbox("Mute", ref newSoundEffectsMute); + ImGui.Checkbox("Mute", ref newSoundEffectsMute); ImGui.Separator(); @@ -205,11 +205,11 @@ origFontName = OptionsWindow.fontName; origFontSize = OptionsWindow.fontSize; origProfanityLevel = OptionsWindow.profanityLevel; - origSoundEffectVolume = OptionsWindow.newSoundEffectVolume; - origSoundEffectsMute = OptionsWindow.newSoundEffectsMute; + origSoundEffectVolume = OptionsWindow.newSoundEffectVolume; + origSoundEffectsMute = OptionsWindow.newSoundEffectsMute; - bridgeEngine.setOptionMessages.Add(new SetOptionMessage { NewProfanitySetting = (ProfanityLevel)profanityLevel, + bridgeEngine.setOptionMessages.Add(new SetOptionMessage { NewProfanitySetting = (ProfanityLevel)profanityLevel, NewSoundEffectVolume = newSoundEffectVolume, NewSoundEffectMuted = newSoundEffectsMute}); } @@ -232,10 +232,10 @@ origFontName = OptionsWindow.fontName; origFontSize = OptionsWindow.fontSize; origProfanityLevel = OptionsWindow.profanityLevel; - origSoundEffectVolume = OptionsWindow.newSoundEffectVolume; - origSoundEffectsMute = OptionsWindow.newSoundEffectsMute; + origSoundEffectVolume = OptionsWindow.newSoundEffectVolume; + origSoundEffectsMute = OptionsWindow.newSoundEffectsMute; - bridgeEngine.setOptionMessages.Add(new SetOptionMessage { NewProfanitySetting = (ProfanityLevel)profanityLevel, + bridgeEngine.setOptionMessages.Add(new SetOptionMessage { NewProfanitySetting = (ProfanityLevel)profanityLevel, NewSoundEffectVolume = newSoundEffectVolume, NewSoundEffectMuted = newSoundEffectsMute}); } @@ -250,16 +250,16 @@ OptionsWindow.fontName = origFontName; OptionsWindow.fontSize = origFontSize; OptionsWindow.profanityLevel = origProfanityLevel; - OptionsWindow.newSoundEffectVolume = origSoundEffectVolume; - OptionsWindow.newSoundEffectsMute = origSoundEffectsMute; + OptionsWindow.newSoundEffectVolume = origSoundEffectVolume; + OptionsWindow.newSoundEffectsMute = origSoundEffectsMute; - if ((origSoundEffectsMute != newSoundEffectsMute) - | (origSoundEffectVolume != newSoundEffectVolume)) { - bridgeEngine.setOptionMessages.Add(new SetOptionMessage { NewProfanitySetting = (ProfanityLevel)origProfanityLevel, - NewSoundEffectVolume = origSoundEffectVolume, - NewSoundEffectMuted = origSoundEffectsMute}); - } + if ((origSoundEffectsMute != newSoundEffectsMute) + | (origSoundEffectVolume != newSoundEffectVolume)) { + bridgeEngine.setOptionMessages.Add(new SetOptionMessage { NewProfanitySetting = (ProfanityLevel)origProfanityLevel, + NewSoundEffectVolume = origSoundEffectVolume, + NewSoundEffectMuted = origSoundEffectsMute}); + } }