From: Severin Meyer Date: Fri, 23 Jan 2015 21:36:10 +0000 (+0100) Subject: Add a checkbox to the audio settings to toggle focus sounds X-Git-Tag: xonotic-v0.8.1~147^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4a37880bd6e56b735505c5ac6832e320a2df275f;p=xonotic%2Fxonotic-data.pk3dir.git Add a checkbox to the audio settings to toggle focus sounds --- diff --git a/qcsrc/menu/xonotic/dialog_settings_audio.c b/qcsrc/menu/xonotic/dialog_settings_audio.c index 39bee3242..cfbe229b5 100644 --- a/qcsrc/menu/xonotic/dialog_settings_audio.c +++ b/qcsrc/menu/xonotic/dialog_settings_audio.c @@ -5,6 +5,7 @@ CLASS(XonoticAudioSettingsTab) EXTENDS(XonoticTab) ATTRIB(XonoticAudioSettingsTab, intendedWidth, float, 0.9) ATTRIB(XonoticAudioSettingsTab, rows, float, 15.5) ATTRIB(XonoticAudioSettingsTab, columns, float, 6.2) // added extra .2 for center space + ATTRIB(XonoticAudioSettingsTab, hiddenMenuSoundsSlider, entity, NULL) ENDCLASS(XonoticAudioSettingsTab) entity makeXonoticAudioSettingsTab(); #endif @@ -136,7 +137,10 @@ void XonoticAudioSettingsTab_fill(entity me) me.TR(me); me.TD(me, 1, 3, makeXonoticCheckBox(0, "con_chatsound", _("Chat message sound"))); me.TR(me); - me.TD(me, 1, 3, makeXonoticCheckBoxEx(2, 0, "menu_sounds", _("Menu sounds"))); + me.hiddenMenuSoundsSlider = makeXonoticSlider(1, 1, 1, "menu_sounds"); + me.TD(me, 1, 1.2, makeXonoticSliderCheckBox(0, 1, me.hiddenMenuSoundsSlider, _("Menu sounds"))); + me.TD(me, 1, 1.8, e = makeXonoticSliderCheckBox(2, 0, me.hiddenMenuSoundsSlider, _("Focus sounds"))); + setDependent(e, "menu_sounds", 1, 2); me.TR(me); me.TR(me); me.TD(me, 1, 1, makeXonoticTextLabel(0, _("Time announcer:")));