From a8f742803413d41d5357593a03374d07f0357f59 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 14 Dec 2020 03:27:31 +0100 Subject: [PATCH] Add radio buttons to allow setting hit indication sound pitch shifting, it fixes #2285 --- qcsrc/menu/xonotic/dialog_settings_audio.qc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- 2.39.2