11 #define ADDVALUE_FPS(i) e.addValue(e, strzone(sprintf(_("%d fps"), i)), #i) 12 #define ADDVALUE_SPEED_KB(i) e.addValue(e, strzone(sprintf(_("%d KB/s"), i)), #i) 13 #define ADDVALUE_SPEED_MB(i, j) e.addValue(e, strzone(sprintf(_("%d MB/s"), i)), #j) 18 me.configureDialog(me);
31 _(
"Force client to use chosen port unless it is set to 0")));
36 _(
"Specify your network speed")));
37 e.addValue(e, _(
"56k"),
"4000");
38 e.addValue(e, _(
"ISDN"),
"7000");
39 e.addValue(e, _(
"Slow ADSL"),
"20000");
40 e.addValue(e, _(
"Fast ADSL"),
"40000");
41 e.addValue(e, _(
"Broadband"),
"66666");
42 e.configureXonoticTextSliderValues(e);
47 _(
"Maximum number of concurrent HTTP/FTP downloads")));
57 e.addValue(e,
strzone(_(
"Unlimited")),
"0");
58 e.configureXonoticTextSliderValues(e);
60 if(
cvar(
"developer") > 0)
67 _(
"Show a graph of packet sizes and other information")));
69 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_movement", _(
"Client-side movement prediction")));
71 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_movement_errorcompensation", _(
"Movement error compensation")));
75 me.TD(me, 1, 3, e =
makeXonoticCheckBoxEx(2, 1,
"crypto_aeslevel", _(
"Use encryption (AES) when available")));
77 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
90 e.addValue(e,
ZCTX(_(
"MAXFPS^Unlimited")),
"0");
91 e.configureXonoticTextSliderValues(e);
95 e.addValue(e,
ZCTX(_(
"TRGT^Disabled")),
"0");
104 e.configureXonoticTextSliderValues(e);
112 e.addValue(e,
ZCTX(_(
"IDLFPS^Unlimited")),
"0");
113 e.configureXonoticTextSliderValues(e);
116 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"cl_maxfps_alwayssleep", _(
"Save processing time for other apps")));
120 _(
"Show your rendered frames per second")));
127 _(
"Menu tooltips: disabled, standard or advanced (also shows cvar or console command bound to the menu item)")));
128 e.addValue(e,
ZCTX(_(
"TLTIP^Disabled")),
"0");
129 e.addValue(e,
ZCTX(_(
"TLTIP^Standard")),
"1");
130 e.addValue(e,
ZCTX(_(
"TLTIP^Advanced")),
"2");
131 e.configureXonoticTextSliderValues(e);
134 _(
"Show current date and time of day, useful on screenshots")));
142 _(
"Advanced settings where you can tweak every single variable of the game")));
144 e.onClickEntity =
main.cvarsDialog;
149 e.onClickEntity =
main.resetDialog;
entity makeXonoticCheckBoxEx(float theYesValue, float theNoValue, string theCvar, string theText)
entity makeXonoticHeaderLabel(string theText)
void DialogOpenButton_Click(entity button, entity tab)
entity makeXonoticTextLabel(float theAlign, string theText)
#define ADDVALUE_SPEED_MB(i, j)
entity makeXonoticTextSlider_T(string theCvar, string theTooltip)
entity makeXonoticSlider(float theValueMin, float theValueMax, float theValueStep, string theCvar)
void XonoticMiscSettingsTab_fill(entity me)
entity makeXonoticSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)
#define ADDVALUE_SPEED_KB(i)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
entity makeXonoticMiscSettingsTab()
float CVAR_TYPEFLAG_ENGINE
entity makeXonoticTextSlider(string theCvar)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)