From: terencehill Date: Mon, 14 Dec 2020 02:27:31 +0000 (+0100) Subject: Add radio buttons to allow setting hit indication sound pitch shifting, it fixes... X-Git-Tag: xonotic-v0.8.5~641^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a8f742803413d41d5357593a03374d07f0357f59;p=xonotic%2Fxonotic-data.pk3dir.git Add radio buttons to allow setting hit indication sound pitch shifting, it fixes #2285 --- diff --git a/qcsrc/menu/xonotic/dialog_settings_audio.qc b/qcsrc/menu/xonotic/dialog_settings_audio.qc index 1f8c6d81c..448135042 100644 --- a/qcsrc/menu/xonotic/dialog_settings_audio.qc +++ b/qcsrc/menu/xonotic/dialog_settings_audio.qc @@ -4,6 +4,7 @@ #include "commandbutton.qh" #include "textlabel.qh" #include "checkbox.qh" +#include "radiobutton.qh" #include "textslider.qh" #include "checkbox_slider_invalid.qh" @@ -143,6 +144,17 @@ void XonoticAudioSettingsTab_fill(entity me) me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "cl_hitsound", _("Hit indication sound"), _("Play a hit indicator sound when your shot hits an enemy"))); e.sendCvars = true; + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 2.8 / 3, e = makeXonoticRadioButton_T(3, "cl_hitsound", "1", ZCTX(_("SND^Fixed")), _("-"))); + e.sendCvars = true; + setDependent(e, "cl_hitsound", 1, 999); + me.TD(me, 1, 2.8 / 3, e = makeXonoticRadioButton_T(3, "cl_hitsound", "2", _("Decreasing"), _("Decrease pitch with more damage"))); + e.sendCvars = true; + setDependent(e, "cl_hitsound", 1, 999); + me.TD(me, 1, 2.8 / 3, e = makeXonoticRadioButton_T(3, "cl_hitsound", "3", _("Increasing"), _("Increase pitch with more damage"))); + e.sendCvars = true; + setDependent(e, "cl_hitsound", 1, 999); me.TR(me); me.TD(me, 1, 3, makeXonoticCheckBox(0, "con_chatsound", _("Chat message sound"))); me.TR(me);