15 me.configureDialog(me);
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;
35 e.applyButton = videoApplyButton;
39 e.addValue(e,
ZCTX(_(
"SZ^Unreadable")),
"-1");
40 e.addValue(e,
ZCTX(_(
"SZ^Tiny")),
"-0.75");
41 e.addValue(e,
ZCTX(_(
"SZ^Little")),
"-0.5");
42 e.addValue(e,
ZCTX(_(
"SZ^Small")),
"-0.25");
43 e.addValue(e,
ZCTX(_(
"SZ^Medium")),
"0");
44 e.addValue(e,
ZCTX(_(
"SZ^Large")),
"0.25");
45 e.addValue(e,
ZCTX(_(
"SZ^Huge")),
"0.5");
46 e.addValue(e,
ZCTX(_(
"SZ^Gigantic")),
"0.75");
47 e.addValue(e,
ZCTX(_(
"SZ^Colossal")),
"1");
48 e.configureXonoticTextSliderValues(e);
49 e.applyButton = videoApplyButton;
53 _(
"How many bits per pixel (BPP) to render at, 32 is recommended")));
54 e.addValue(e, _(
"16bit"),
"16");
55 e.addValue(e, _(
"32bit"),
"32");
56 e.configureXonoticTextSliderValues(e);
57 e.applyButton = videoApplyButton;
60 e.applyButton = videoApplyButton;
62 _(
"Enable vertical synchronization to prevent tearing, will cap your fps to the screen refresh rate")));
65 if(
cvar(
"developer") > 0)
68 _(
"Poor man's left handed mode")));
73 _(
"Anisotropic filtering quality")));
74 e.addValue(e,
ZCTX(_(
"ANISO^Disabled")),
"1");
75 e.addValue(e, _(
"2x"),
"2");
76 e.addValue(e, _(
"4x"),
"4");
77 e.addValue(e, _(
"8x"),
"8");
78 e.addValue(e, _(
"16x"),
"16");
79 e.configureXonoticTextSliderValues(e);
84 _(
"Enable antialiasing, which smooths the edges of 3D geometry. Note that it might decrease performance by quite a lot")));
85 e.addValue(e,
ZCTX(_(
"AA^Disabled")),
"1");
86 e.addValue(e, _(
"2x"),
"2");
87 e.addValue(e, _(
"4x"),
"4");
88 e.configureXonoticTextSliderValues(e);
90 e.applyButton = videoApplyButton;
99 _(
"Eliminate overdraw by rendering a depth-only version of the scene before the normal rendering starts")));
100 e.addValue(e,
ZCTX(_(
"DF^Disabled")),
"0");
101 e.addValue(e,
ZCTX(_(
"DF^World")),
"1");
102 e.addValue(e,
ZCTX(_(
"DF^All")),
"2");
103 e.configureXonoticTextSliderValues(e);
112 _(
"Make use of Vertex Buffer Objects to store static geometry in video memory for faster rendering")));
116 _(
"Make use of Vertex Buffer Objects to store static geometry in video memory for faster rendering")));
118 _(
"Make use of Vertex Buffer Objects to store static geometry in video memory for faster rendering")));
121 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
124 _(
"Brightness of black")));
128 _(
"Brightness of white")));
133 _(
"Inverse gamma correction value, a brightness effect that does not affect white or black")));
139 _(
"By how much to multiply the contrast in dark areas")));
145 _(
"Saturation adjustment (0 = grayscale, 1 = normal, 2 = oversaturated), requires GLSL color control")));
151 _(
"Ambient lighting, if set too high it tends to make light on maps look dull and flat")));
155 _(
"Global rendering brightness")));
159 _(
"Make the CPU wait for the GPU to finish each frame, can help with some strange input or video lag on some machines")));
163 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"vid_gl20", _(
"Use OpenGL 2.0 shaders (GLSL)")));
164 e.applyButton = videoApplyButton;
166 if(
cvar(
"developer") > 0)
169 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"v_psycho", _(
"Psycho coloring (easter egg)")));
172 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"r_trippy", _(
"Trippy vertices (easter egg)")));
176 me.gotoRC(me, me.rows - 1, 0);
177 me.TD(me, 1, me.columns, videoApplyButton);
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
entity makeXonoticVideoSettingsTab()
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticTextSlider_T(string theCvar, string theTooltip)
void XonoticVideoSettingsTab_fill(entity me)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
float CVAR_TYPEFLAG_ENGINE
entity makeXonoticTextSlider(string theCvar)
entity makeXonoticResolutionSlider()
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)