15 me.configureDialog(me);
24 "snd_attenuation_method_${menu_snd_attenuation_method}"
26 audioApplyButton.disableOnClick =
true;
100 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"menu_snd_attenuation_method", _(
"New style sound attenuation")));
101 e.applyButton = audioApplyButton;
103 me.TD(me, 1, 3,
makeXonoticCheckBox(0,
"snd_mutewhenidle", _(
"Mute sounds when not active")));
105 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
108 _(
"Sound output frequency")));
109 e.addText(e, _(
"8 kHz"), 8000);
110 e.addText(e, _(
"11.025 kHz"), 11025);
111 e.addText(e, _(
"16 kHz"), 16000);
112 e.addText(e, _(
"22.05 kHz"), 22050);
113 e.addText(e, _(
"24 kHz"), 24000);
114 e.addText(e, _(
"32 kHz"), 32000);
115 e.addText(e, _(
"44.1 kHz"), 44100);
116 e.addText(e, _(
"48 kHz"), 48000);
117 e.configureXonoticMixedSliderValues(e);
118 e.applyButton = audioApplyButton;
122 _(
"Number of channels for the sound output")));
123 e.addText(e, _(
"Mono"), 1);
124 e.addText(e, _(
"Stereo"), 2);
125 e.addText(e, _(
"2.1"), 3);
126 e.addText(e, _(
"4"), 4);
127 e.addText(e, _(
"5"), 5);
128 e.addText(e, _(
"5.1"), 6);
129 e.addText(e, _(
"6.1"), 7);
130 e.addText(e, _(
"7.1"), 8);
131 e.configureXonoticMixedSliderValues(e);
132 e.applyButton = audioApplyButton;
136 _(
"Swap left/right channels")));
139 me.TD(me, 1, 3, e =
makeXonoticCheckBox_T(0,
"snd_spatialization_control", _(
"Headphone-friendly mode"),
140 _(
"Blend the left and right channels slightly to decrease stereo separation a bit")));
145 _(
"Play a hit indicator sound when your shot hits an enemy")));
152 me.TD(me, 1, 2.8 / 3, e =
makeXonoticRadioButton_T(3,
"cl_hitsound",
"2", _(
"Decreasing"), _(
"Decrease pitch with more damage")));
155 me.TD(me, 1, 2.8 / 3, e =
makeXonoticRadioButton_T(3,
"cl_hitsound",
"3", _(
"Increasing"), _(
"Increase pitch with more damage")));
162 _(
"Play sounds when clicking menu items")));
164 _(
"Play sounds when hovering over menu items too")));
170 e.formatString =
"m";
171 e.addText(e,
ZCTX(_(
"WRN^Disabled")), 0);
172 e.addRange(e, 1, 5, 4);
173 e.addText(e,
ZCTX(_(
"WRN^Both")), 3);
174 e.configureXonoticMixedSliderValues(e);
178 _(
"Automatically taunt enemies after fragging them")));
179 e.addText(e, _(
"Never"), 0);
180 e.addText(e, _(
"Sometimes"), 0.35);
181 e.addText(e, _(
"Often"), 0.65);
182 e.addText(e, _(
"Always"), 1);
183 e.configureXonoticMixedSliderValues(e);
186 me.gotoRC(me, me.rows - 1, 0);
187 me.TD(me, 1, me.columns, audioApplyButton);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeXonoticAudioSettingsTab()
void XonoticAudioSettingsTab_fill(entity me)
entity makeXonoticDecibelsSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBoxEx_T(float theYesValue, float theNoValue, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
entity makeXonoticMixedSlider(string theCvar)
entity makeXonoticMixedSlider_T(string theCvar, string theTooltip)