22{
24
25 me.TR(me);
27 me.TR(me);
28 me.TDempty(me, 0.2);
31 _("Field of vision in degrees")));
32 e.formatString = _("%s°");
33 me.TR(me);
34 me.TR(me);
36 me.TR(me);
37 me.TDempty(me, 0.2);
38 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(2, 0,
"cl_eventchase_death", _(
"Slide to third person upon death")));
40 me.TR(me);
41 me.TDempty(me, 0.2);
42 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(0.05, 0,
"cl_bobfall", _(
"Smooth the view when landing from a jump")));
44 me.TR(me);
45 me.TDempty(me, 0.2);
46 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(0.05, 0,
"cl_smoothviewheight", _(
"Smooth the view while crouching")));
48 me.TR(me);
49 me.TDempty(me, 0.2);
53 me.TR(me);
54 me.TDempty(me, 0.2);
57 me.TR(me);
58 me.TR(me);
60 me.TR(me);
61 me.TDempty(me, 0.2);
65 e.formatString = _("%s qu");
67 me.TR(me);
68 me.TDempty(me, 0.2);
72 e.formatString = _("%s qu");
74 me.TR(me);
75 me.TR(me);
76 me.TD(me, 1, 3, e =
makeXonoticCheckBox(1,
"cl_clippedspectating", _(
"Allow passing through walls while spectating")));
77 e.sendCvars = true;
78
79 me.gotoRC(me, 0, 3); me.setFirstColumn(me, me.currentColumn);
81 me.TR(me);
84 _("How big the zoom factor is when the zoom button is pressed")));
85 e.formatString = _("%sx");
86 e.addRange(e, 2, 10, 0.5);
87 e.addRange(e, 11, 30, 1);
88 e.configureXonoticMixedSliderValues(e);
89 me.TR(me);
90
94 _("How fast the view will be zoomed, disable to zoom instantly")));
95 e.addRange(e, 1, 8, 1);
96 e.addText(e,
ZCTX(_(
"ZOOM^Instant")), -1);
97 e.configureXonoticMixedSliderValues(e);
99 me.TR(me);
100
104 _("How zoom changes sensitivity, from 0% (lower sensitivity) to 100% (no sensitivity change)")));
105 e.formatString = "%";
107 me.TR(me);
110 me.TR(me);
111 me.TDempty(me, 0.2);
116 e.formatString = _("%sx");
119 me.TR(me);
120 me.TDempty(me, 0.2);
125 e.addRange(e, 2, 16, 2);
126 e.addText(e,
ZCTX(_(
"ZOOM^Instant")), -1);
127 e.configureXonoticMixedSliderValues(e);
130 me.TR(me);
131 me.TR(me);
132 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_velocityzoom_enabled", _(
"Velocity zoom")));
133 me.TR(me);
134 me.TDempty(me, 0.2);
139 e.formatString = _("%sx");
142 me.TR(me);
143 me.TDempty(me, 0.2);
144 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(3, 1,
"cl_velocityzoom_type", _(
"Forward movement only")));
147 me.TR(me);
148 me.TR(me);
149
150 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_reticle", _(
"Display reticle 2D overlay while zooming")));
151 me.TR(me);
152
153 me.TD(me, 1, 3, e =
makeXonoticCheckBox_T(0,
"cl_unpress_zoom_on_death", _(
"Release zoom when you die or respawn"),
"-"));
154 makeMulti(e,
"cl_unpress_zoom_on_spawn");
155 me.TR(me);
156
157 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_unpress_zoom_on_weapon_switch", _(
"Release zoom when you switch weapons")));
158}
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticHeaderLabel(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 makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
entity makeXonoticMixedSlider(string theCvar)
entity makeXonoticMixedSlider_T(string theCvar, string theTooltip)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)