21{
23
24 me.TR(me);
26 me.TR(me);
27 me.TDempty(me, 0.2);
30 _("Field of vision in degrees")));
31 e.formatString = _("%s°");
32 me.TR(me);
33 me.TR(me);
35 me.TR(me);
36 me.TDempty(me, 0.2);
37 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(2, 0,
"cl_eventchase_death", _(
"Slide to third person upon death")));
39 me.TR(me);
40 me.TDempty(me, 0.2);
41 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(0.05, 0,
"cl_bobfall", _(
"Smooth the view when landing from a jump")));
43 me.TR(me);
44 me.TDempty(me, 0.2);
45 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(0.05, 0,
"cl_smoothviewheight", _(
"Smooth the view while crouching")));
47 me.TR(me);
48 me.TDempty(me, 0.2);
52 me.TR(me);
53 me.TDempty(me, 0.2);
56 me.TR(me);
57 me.TR(me);
59 me.TR(me);
60 me.TDempty(me, 0.2);
64 e.formatString = _("%s qu");
66 me.TR(me);
67 me.TDempty(me, 0.2);
71 e.formatString = _("%s qu");
73 me.TR(me);
74 me.TR(me);
75 me.TD(me, 1, 3, e =
makeXonoticCheckBox(1,
"cl_clippedspectating", _(
"Allow passing through walls while spectating")));
76 e.sendCvars = true;
77
78 me.gotoRC(me, 0, 3); me.setFirstColumn(me, me.currentColumn);
80 me.TR(me);
83 _("How big the zoom factor is when the zoom button is pressed")));
84 e.formatString = _("%sx");
85 e.addRange(e, 2, 10, 0.5);
86 e.addRange(e, 11, 30, 1);
87 e.configureXonoticMixedSliderValues(e);
88 me.TR(me);
89
93 _("How fast the view will be zoomed, disable to zoom instantly")));
94 e.addRange(e, 1, 8, 1);
95 e.addText(e,
ZCTX(_(
"ZOOM^Instant")), -1);
96 e.configureXonoticMixedSliderValues(e);
98 me.TR(me);
99
103 _("How zoom changes sensitivity, from 0% (lower sensitivity) to 100% (no sensitivity change)")));
104 e.formatString = "%";
106 me.TR(me);
109 me.TR(me);
110 me.TDempty(me, 0.2);
115 e.formatString = _("%sx");
118 me.TR(me);
119 me.TDempty(me, 0.2);
124 e.addRange(e, 2, 16, 2);
125 e.addText(e,
ZCTX(_(
"ZOOM^Instant")), -1);
126 e.configureXonoticMixedSliderValues(e);
129 me.TR(me);
130 me.TR(me);
131 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_velocityzoom_enabled", _(
"Velocity zoom")));
132 me.TR(me);
133 me.TDempty(me, 0.2);
138 e.formatString = _("%sx");
141 me.TR(me);
142 me.TDempty(me, 0.2);
143 me.TD(me, 1, 2.8, e =
makeXonoticCheckBoxEx(3, 1,
"cl_velocityzoom_type", _(
"Forward movement only")));
146 me.TR(me);
147 me.TR(me);
148
149 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_reticle", _(
"Display reticle 2D overlay while zooming")));
150 me.TR(me);
151
152 me.TD(me, 1, 3, e =
makeXonoticCheckBox_T(0,
"cl_unpress_zoom_on_death", _(
"Release zoom when you die or respawn"),
"-"));
153 makeMulti(e,
"cl_unpress_zoom_on_spawn");
154 me.TR(me);
155
156 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_unpress_zoom_on_weapon_switch", _(
"Release zoom when you switch weapons")));
157}
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)