X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_settings_audio.qc;h=c2e3482f57a8bd6d6aee6fff36c972dcd13a20ef;hb=4984862ea4efb88fcb926ef0d23c5d535ec9e418;hp=7af8c550032b3dec7e6368f19b6ada4cfe8099d7;hpb=490a31934aa67cc7de5299a4d3f625d5271f8583;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_settings_audio.qc b/qcsrc/menu/xonotic/dialog_settings_audio.qc index 7af8c5500..c2e3482f5 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, 3); + 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, 3); + 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, 3); me.TR(me); me.TD(me, 1, 3, makeXonoticCheckBox(0, "con_chatsound", _("Chat message sound"))); me.TR(me); @@ -172,7 +184,7 @@ void XonoticAudioSettingsTab_fill(entity me) e.sendCvars = true; me.TR(me); me.TR(me); - if(cvar("developer")) + if(cvar("developer") > 0) me.TD(me, 1, 3, makeXonoticCheckBox(0, "showsound", _("Debug info about sounds"))); me.gotoRC(me, me.rows - 1, 0);