2 CLASS(XonoticMiscSettingsTab) EXTENDS(XonoticTab)
3 METHOD(XonoticMiscSettingsTab, fill, void(entity))
4 ATTRIB(XonoticMiscSettingsTab, title, string, _("Misc"))
5 ATTRIB(XonoticMiscSettingsTab, intendedWidth, float, 0.9)
6 ATTRIB(XonoticMiscSettingsTab, rows, float, 15.5)
7 ATTRIB(XonoticMiscSettingsTab, columns, float, 6.2)
8 ENDCLASS(XonoticMiscSettingsTab)
9 entity makeXonoticMiscSettingsTab();
13 entity makeXonoticMiscSettingsTab()
16 me = spawnXonoticMiscSettingsTab();
17 me.configureDialog(me);
20 void XonoticMiscSettingsTab_fill(entity me)
26 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Network")));
28 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Client UDP port:")));
29 me.TD(me, 1, 1.5, e = makeXonoticInputBox(0, "cl_port"));
32 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Bandwidth:")));
33 me.TD(me, 1, 2, e = makeXonoticTextSlider("_cl_rate"));
34 e.addValue(e, _("56k"), "4000");
35 e.addValue(e, _("ISDN"), "7000");
36 e.addValue(e, _("Slow ADSL"), "15000");
37 e.addValue(e, _("Fast ADSL"), "20000");
38 e.addValue(e, _("Broadband"), "66666");
39 e.configureXonoticTextSliderValues(e);
41 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Input packets/s:")));
42 me.TD(me, 1, 2, e = makeXonoticSlider(20, 100, 5, "cl_netfps"));
44 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Server queries/s:")));
45 me.TD(me, 1, 2, e = makeXonoticSlider(20, 100, 10, "net_slist_queriespersecond"));
48 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Downloads:")));
49 me.TD(me, 1, 2, e = makeXonoticSlider(1, 5, 1, "cl_curl_maxdownloads"));
52 me.TD(me, 1, 0.9, e = makeXonoticTextLabel(0, _("Speed (kB/s):")));
53 me.TD(me, 1, 2, e = makeXonoticSlider(10, 2000, 50, "cl_curl_maxspeed"));
57 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Local latency:")));
58 me.TD(me, 1, 2, e = makeXonoticSlider(0, 1000, 25, "cl_netlocalping"));
61 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "shownetgraph", _("Show netgraph")));
63 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_movement", _("Client-side movement prediction")));
65 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_movement_errorcompensation", _("Movement error compensation")));
66 setDependent(e, "cl_movement", 1, 1);
68 if(cvar_type("crypto_aeslevel") & CVAR_TYPEFLAG_ENGINE)
69 me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 1, "crypto_aeslevel", _("Use encryption (AES) when available"))); // TODO: move up
71 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
72 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Framerate")));
74 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Maximum:")));
75 me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_maxfps"));
76 e.addValue(e, ZCTX(_("MAXFPS^5 fps")), "5");
77 e.addValue(e, ZCTX(_("MAXFPS^10 fps")), "10");
78 e.addValue(e, ZCTX(_("MAXFPS^20 fps")), "20");
79 e.addValue(e, ZCTX(_("MAXFPS^30 fps")), "30");
80 e.addValue(e, ZCTX(_("MAXFPS^40 fps")), "40");
81 e.addValue(e, ZCTX(_("MAXFPS^50 fps")), "50");
82 e.addValue(e, ZCTX(_("MAXFPS^60 fps")), "60");
83 e.addValue(e, ZCTX(_("MAXFPS^70 fps")), "70");
84 e.addValue(e, ZCTX(_("MAXFPS^100 fps")), "100");
85 e.addValue(e, ZCTX(_("MAXFPS^125 fps")), "125");
86 e.addValue(e, ZCTX(_("MAXFPS^200 fps")), "200");
87 e.addValue(e, ZCTX(_("MAXFPS^Unlimited")), "0");
88 e.configureXonoticTextSliderValues(e);
90 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Target:")));
91 me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_minfps"));
92 e.addValue(e, ZCTX(_("TRGT^Disabled")), "0");
93 e.addValue(e, ZCTX(_("TRGT^30 fps")), "30");
94 e.addValue(e, ZCTX(_("TRGT^40 fps")), "40");
95 e.addValue(e, ZCTX(_("TRGT^50 fps")), "50");
96 e.addValue(e, ZCTX(_("TRGT^60 fps")), "60");
97 e.addValue(e, ZCTX(_("TRGT^100 fps")), "100");
98 e.addValue(e, ZCTX(_("TRGT^125 fps")), "125");
99 e.addValue(e, ZCTX(_("TRGT^200 fps")), "200");
100 e.configureXonoticTextSliderValues(e);
102 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Idle limit:")));
103 me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_maxidlefps"));
104 e.addValue(e, ZCTX(_("IDLFPS^10 fps")), "10");
105 e.addValue(e, ZCTX(_("IDLFPS^20 fps")), "20");
106 e.addValue(e, ZCTX(_("IDLFPS^30 fps")), "30");
107 e.addValue(e, ZCTX(_("IDLFPS^60 fps")), "60");
108 e.addValue(e, ZCTX(_("IDLFPS^Unlimited")), "0");
109 e.configureXonoticTextSliderValues(e);
112 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_maxfps_alwayssleep", _("Save processing time for other apps")));
113 setDependent(e, "cl_maxfps", 1, 1000);
115 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "showfps", _("Show frames per second")));
118 me.TD(me, 1, 3, e = makeXonoticHeaderLabel(_("Other")));
120 me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Menu tooltips:")));
121 me.TD(me, 1, 2, e = makeXonoticTextSlider("menu_tooltips"));
122 e.addValue(e, ZCTX(_("TLTIP^Disabled")), "0");
123 e.addValue(e, ZCTX(_("TLTIP^Standard")), "1");
124 e.addValue(e, ZCTX(_("TLTIP^Advanced")), "2");
125 e.configureXonoticTextSliderValues(e);
127 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "showtime", _("Show current date and time")));
128 makeMulti(e, "showdate");
130 me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "developer", _("Enable developer mode")));
134 me.TD(me, 1, 2, e = makeXonoticButton(_("Advanced settings..."), '0 0 0'));
135 e.onClick = DialogOpenButton_Click;
136 e.onClickEntity = main.cvarsDialog;
139 me.TD(me, 1, 2, e = makeXonoticButton(_("Factory reset"), '0 0 0'));
140 e.onClick = DialogOpenButton_Click;
141 e.onClickEntity = main.resetDialog;