19{
21
22
24 miscApplyButton.disableOnClick = true;
25
26 me.TR(me);
28 me.TR(me);
30 _("Show a graph of packet sizes and other information")));
31 me.TR(me);
33 _("Each packet includes a copy of the previous message")));
34 me.TR(me);
35 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_movement_errorcompensation", _(
"Movement prediction error compensation")));
37 me.TR(me);
39 me.TD(me, 1, 3, e =
makeXonoticCheckBoxEx(2, 1,
"crypto_aeslevel", _(
"Use encryption (AES) when available")));
40 me.TR(me);
41 me.TR(me);
43 me.TR(me);
46 _("Maximum number of concurrent HTTP downloads")));
47 me.TR(me);
50 #define ADDVALUE_SPEED_KB(i) e.addText(e, strzone(sprintf(_("%d KiB/s"), i)), i)
51 #define ADDVALUE_SPEED_MB(i, j) e.addText(e, strzone(sprintf(_("%d MiB/s"), i)), j)
60 #undef ADDVALUE_SPEED_KB
61 #undef ADDVALUE_SPEED_MB
62 e.addText(e,
strzone(_(
"Unlimited")), 0);
63 e.configureXonoticMixedSliderValues(e);
64
65 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
67 me.TR(me);
70 _("Menu tooltips: disabled, standard or advanced (also shows cvar or console command bound to the menu item)")));
71 e.setValueSpace(e, e.valueSpace * 1.2);
72 e.addText(e,
ZCTX(_(
"TLTIP^Disabled")), 0);
73 e.addText(e,
ZCTX(_(
"TLTIP^Standard")), 1);
74 e.addText(e,
ZCTX(_(
"TLTIP^Advanced")), 2);
75 e.configureXonoticMixedSliderValues(e);
76 me.TR(me);
79 _("How fast animations in the menu occur")));
80 e.formatString = "S";
81 e.setValueSpace(e, e.valueSpace * 1.2);
82 e.addText(e,
ZCTX(_(
"Disabled")), 0);
83 e.addRange(e, 0.05, 0.5, 0.05);
84 e.configureXonoticMixedSliderValues(e);
85 me.TR(me);
87 _("Draw a shadow behind all text to improve readability")));
88 e.applyButton = miscApplyButton;
89 me.TR(me);
91 _("Show current date and time of day, useful on screenshots")));
93 me.TR(me);
94 me.TR(me);
95 me.TDempty(me, 0.5);
97 _("Advanced settings where you can tweak every single variable of the game")));
99 e.onClickEntity =
main.cvarsDialog;
100 me.TR(me);
101 me.TR(me);
102 me.TDempty(me, 0.5);
105 e.onClickEntity =
main.resetDialog;
106
107 me.gotoRC(me, me.rows - 1, 0);
108 me.TD(me, 1, me.columns, miscApplyButton);
109}
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)