20{
22
23
25 miscApplyButton.disableOnClick = true;
26
27 me.TR(me);
29 me.TR(me);
31 _("Show a graph of packet sizes and other information")));
32 me.TR(me);
34 _("Each packet includes a copy of the previous message")));
35 me.TR(me);
36 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_movement_errorcompensation", _(
"Movement prediction error compensation")));
38 me.TR(me);
40 me.TD(me, 1, 3, e =
makeXonoticCheckBoxEx(2, 1,
"crypto_aeslevel", _(
"Use encryption (AES) when available")));
41 me.TR(me);
42 me.TR(me);
44 me.TR(me);
47 _("Maximum number of concurrent HTTP downloads")));
48 me.TR(me);
51 #define ADDVALUE_SPEED_KB(i) e.addText(e, strzone(sprintf(_("%d KiB/s"), i)), i)
52 #define ADDVALUE_SPEED_MB(i, j) e.addText(e, strzone(sprintf(_("%d MiB/s"), i)), j)
61 #undef ADDVALUE_SPEED_KB
62 #undef ADDVALUE_SPEED_MB
63 e.addText(e,
strzone(_(
"Unlimited")), 0);
64 e.configureXonoticMixedSliderValues(e);
65
66 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
68 me.TR(me);
71 _("Menu tooltips: disabled, standard or advanced (also shows cvar or console command bound to the menu item)")));
72 e.setValueSpace(e, e.valueSpace * 1.2);
73 e.addText(e,
ZCTX(_(
"TLTIP^Disabled")), 0);
74 e.addText(e,
ZCTX(_(
"TLTIP^Standard")), 1);
75 e.addText(e,
ZCTX(_(
"TLTIP^Advanced")), 2);
76 e.configureXonoticMixedSliderValues(e);
77 me.TR(me);
80 _("How fast animations in the menu occur")));
81 e.formatString = "S";
82 e.setValueSpace(e, e.valueSpace * 1.2);
83 e.addText(e,
ZCTX(_(
"Disabled")), 0);
84 e.addRange(e, 0.05, 0.5, 0.05);
85 e.configureXonoticMixedSliderValues(e);
86 me.TR(me);
88 _("Draw a shadow behind all text to improve readability")));
89 e.applyButton = miscApplyButton;
90 me.TR(me);
92 _("Show current date and time of day, useful on screenshots")));
94 me.TR(me);
95 me.TR(me);
96 me.TDempty(me, 0.5);
98 _("Advanced settings where you can tweak every single variable of the game")));
100 e.onClickEntity =
main.cvarsDialog;
101 me.TR(me);
102 me.TR(me);
103 me.TDempty(me, 0.5);
106 e.onClickEntity =
main.resetDialog;
107
108 me.gotoRC(me, me.rows - 1, 0);
109 me.TD(me, 1, me.columns, miscApplyButton);
110}
float CVAR_TYPEFLAG_ENGINE
#define ADDVALUE_SPEED_KB(i)
#define ADDVALUE_SPEED_MB(i, j)
void DialogOpenButton_Click(entity button, entity tab)
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)