19{
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; "
27 "vid_restart; "
28 "menu_cmd sync"
30 videoApplyButton.disableOnClick = true;
31
32 me.TR(me);
34 e.applyButton = videoApplyButton;
37 me.TR(me);
40 e.applyButton = videoApplyButton;
41 me.TR(me);
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;
55 me.TR(me);
56 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"r_stereo_redcyan", _(
"Anaglyph 3D (red-cyan)")));
57 me.TR(me);
61
62 me.TR(me);
63 me.TR(me);
65 {
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;
76 }
77 else
78 {
81 _("Screen or window size multiplier, above 1x does antialiasing, below 1x may help slow GPUs")));
82 e.formatString = _("%sx");
83 }
84 me.TR(me);
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);
93
94 string df_tooltip = _("Eliminate overdraw by rendering a depth-only version of the scene before the normal rendering starts");
95 me.TR(me);
96 me.TR(me);
101
102 me.TR(me);
103 me.TR(me);
105 _("Make the CPU wait for the GPU to finish each frame, can help with some strange input or video lag on some machines")));
106 me.TR(me);
108 {
109 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"vid_gl20", _(
"Use OpenGL 2.0 shaders (GLSL)")));
110 e.applyButton = videoApplyButton;
111 }
112
113 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
116 _("Brightness of black")));
117 me.TR(me);
120 _("Brightness of white")));
121 me.TR(me);
126 _("Inverse gamma correction value, a brightness effect that does not affect white or black")));
129 me.TR(me);
134 _("By how much to multiply the contrast in dark areas")));
137 me.TR(me);
142 _("Saturation adjustment (0 = grayscale, 1 = normal, 2 = oversaturated), requires GLSL color control")));
145 me.TR(me);
148 _("Ambient lighting, if set too high it tends to make light on maps look dull and flat")));
149 me.TR(me);
152 _("Global rendering brightness")));
153
154 me.TR(me);
155 me.TR(me);
157 me.TR(me);
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);
166 me.TR(me);
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);
176 me.TR(me);
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);
184 me.TR(me);
186 _("Vsync prevents tearing, but increases latency and caps your fps at the screen refresh rate")));
187 me.TR(me);
189 _("Show your rendered frames per second")));
190
191 me.gotoRC(me, me.rows - 1, 0);
192 me.TD(me, 1, me.columns, videoApplyButton);
193}
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)