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