21 "vid_width $_menu_vid_width; "
22 "vid_height $_menu_vid_height; "
23 "vid_pixelheight $_menu_vid_pixelheight; "
24 "vid_desktopfullscreen $_menu_vid_desktopfullscreen; "
25 "menu_cmd update_conwidths_before_vid_restart; "
29 videoApplyButton.disableOnClick =
true;
33 e.applyButton = videoApplyButton;
39 e.applyButton = videoApplyButton;
43 e.addText(e,
ZCTX(_(
"SZ^Unreadable")), -1);
44 e.addText(e,
ZCTX(_(
"SZ^Tiny")), -0.75);
45 e.addText(e,
ZCTX(_(
"SZ^Little")), -0.5);
46 e.addText(e,
ZCTX(_(
"SZ^Small")), -0.25);
47 e.addText(e,
ZCTX(_(
"SZ^Medium")), 0);
48 e.addText(e,
ZCTX(_(
"SZ^Large")), 0.25);
49 e.addText(e,
ZCTX(_(
"SZ^Huge")), 0.5);
50 e.addText(e,
ZCTX(_(
"SZ^Gigantic")), 0.75);
51 e.addText(e,
ZCTX(_(
"SZ^Colossal")), 1);
52 e.configureXonoticMixedSliderValues(e);
53 e.applyButton = videoApplyButton;
55 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"r_stereo_redcyan", _(
"Anaglyph 3D (red-cyan)")));
68 _(
"Enable antialiasing, which smooths the edges of 3D geometry. Note that it might decrease performance by quite a lot")));
69 e.formatString = _(
"%sx");
70 e.addText(e,
ZCTX(_(
"AA^Disabled")), 1);
71 e.addRange(e, 2, 4, 2);
72 e.configureXonoticMixedSliderValues(e);
74 e.applyButton = videoApplyButton;
80 _(
"Screen or window size multiplier, above 1x does antialiasing, below 1x may help slow GPUs")));
81 e.setValueSpace(e, e.valueSpace * (10/9));
82 e.formatString = _(
"%sx");
87 _(
"Anisotropic filtering quality")));
88 e.setValueSpace(e, e.valueSpace * (10/9));
89 e.formatString = _(
"%sx");
90 e.addText(e,
ZCTX(_(
"ANISO^Disabled")), 1);
91 e.addRange(e, 2, 4, 2);
92 e.addRange(e, 8, 16, 8);
93 e.configureXonoticMixedSliderValues(e);
95 string df_tooltip = _(
"Eliminate overdraw by rendering a depth-only version of the scene before the normal rendering starts");
106 _(
"Make the CPU wait for the GPU to finish each frame, can help with some strange input or video lag on some machines")));
110 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"vid_gl20", _(
"Use OpenGL 2.0 shaders (GLSL)")));
111 e.applyButton = videoApplyButton;
114 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
117 _(
"Brightness of black")));
121 _(
"Brightness of white")));
127 _(
"Inverse gamma correction value, a brightness effect that does not affect white or black")));
135 _(
"By how much to multiply the contrast in dark areas")));
143 _(
"Saturation adjustment (0 = grayscale, 1 = normal, 2 = oversaturated), requires GLSL color control")));
149 _(
"Ambient lighting, if set too high it tends to make light on maps look dull and flat")));
153 _(
"Global rendering brightness")));
161 e.formatString = _(
"%s fps");
162 e.addRange(e, 128, 256, 128);
163 e.addRange(e, 512, 1024, 512);
164 e.addRange(e, 2048, 2048, 2048);
165 e.addText(e,
ZCTX(_(
"MAXFPS^Unlimited")), 0);
166 e.configureXonoticMixedSliderValues(e);
170 e.formatString = _(
"%s fps");
171 e.addText(e,
ZCTX(_(
"TRGT^Disabled")), 0);
172 e.addRange(e, 40, 60, 20);
173 e.addRange(e, 100, 150, 25);
174 e.addRange(e, 200, 250, 50);
175 e.addRange(e, 400, 400, 100);
176 e.configureXonoticMixedSliderValues(e);
180 e.formatString = _(
"%s fps");
181 e.addRange(e, 16, 32, 16);
182 e.addRange(e, 64, 128, 64);
183 e.addText(e,
ZCTX(_(
"IDLFPS^Unlimited")), 0);
184 e.configureXonoticMixedSliderValues(e);
187 _(
"Vsync prevents tearing, but increases latency and caps your fps at the screen refresh rate")));
190 _(
"Show your rendered frames per second")));
192 me.gotoRC(me, me.rows - 1, 0);
193 me.TD(me, 1, me.columns, videoApplyButton);
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticHeaderLabel(string theText)