18{
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; "
26 "vid_restart; "
27 "menu_cmd sync"
29 videoApplyButton.disableOnClick = true;
30
31 me.TR(me);
33 e.applyButton = videoApplyButton;
36 me.TR(me);
39 e.applyButton = videoApplyButton;
40 me.TR(me);
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;
54 me.TR(me);
55 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"r_stereo_redcyan", _(
"Anaglyph 3D (red-cyan)")));
56 me.TR(me);
60
61 me.TR(me);
62 me.TR(me);
64 {
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;
75 }
76 else
77 {
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");
83 }
84 me.TR(me);
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);
94
95 string df_tooltip = _("Eliminate overdraw by rendering a depth-only version of the scene before the normal rendering starts");
96 me.TR(me);
97 me.TR(me);
102
103 me.TR(me);
104 me.TR(me);
106 _("Make the CPU wait for the GPU to finish each frame, can help with some strange input or video lag on some machines")));
107 me.TR(me);
109 {
110 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"vid_gl20", _(
"Use OpenGL 2.0 shaders (GLSL)")));
111 e.applyButton = videoApplyButton;
112 }
113
114 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
117 _("Brightness of black")));
118 me.TR(me);
121 _("Brightness of white")));
122 me.TR(me);
127 _("Inverse gamma correction value, a brightness effect that does not affect white or black")));
130 me.TR(me);
135 _("By how much to multiply the contrast in dark areas")));
138 me.TR(me);
143 _("Saturation adjustment (0 = grayscale, 1 = normal, 2 = oversaturated), requires GLSL color control")));
146 me.TR(me);
149 _("Ambient lighting, if set too high it tends to make light on maps look dull and flat")));
150 me.TR(me);
153 _("Global rendering brightness")));
154
155 me.TR(me);
156 me.TR(me);
158 me.TR(me);
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);
167 me.TR(me);
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);
177 me.TR(me);
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);
185 me.TR(me);
187 _("Vsync prevents tearing, but increases latency and caps your fps at the screen refresh rate")));
188 me.TR(me);
190 _("Show your rendered frames per second")));
191
192 me.gotoRC(me, me.rows - 1, 0);
193 me.TD(me, 1, me.columns, videoApplyButton);
194}
float CVAR_TYPEFLAG_ENGINE
entity makeXonoticResolutionSlider()
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticHeaderLabel(string theText)
entity makeXonoticCheckBox_T(float isInverted, 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)