1 #include "dialog_multiplayer_join_serverinfo.qh"
2 #include "dialog_multiplayer_join_serverinfotab.qh"
3 #include <common/mapinfo.qh>
5 #include "serverlist.qh"
6 #include "playerlist.qh"
8 #include "textlabel.qh"
12 entity makeXonoticServerInfoTab()
15 me = NEW(XonoticServerInfoTab);
16 me.configureDialog(me);
20 void XonoticServerInfoTab_fill(entity me)
24 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Hostname:")));
25 me.TD(me, 1, 4.6, e = makeXonoticTextLabel(0.5, ""));
26 e.colorL = SKINCOLOR_SERVERINFO_NAME;
30 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Address:")));
31 me.TD(me, 1, 4.6, e = makeXonoticTextLabel(0.5, ""));
32 e.colorL = SKINCOLOR_SERVERINFO_IP;
38 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Gametype:")));
39 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
43 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Map:")));
44 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
48 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Mod:")));
49 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
53 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Version:")));
54 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
58 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Settings:")));
59 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
65 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Players:")));
66 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
68 me.numPlayersLabel = e;
70 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Bots:")));
71 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
75 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Free slots:")));
76 me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, ""));
78 me.numFreeSlotsLabel = e;
80 me.gotoRC(me, me.rows - 5, 0);
81 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Encryption:")));
82 me.TD(me, 1, 5.4, e = makeXonoticTextLabel(0, ""));
86 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("ID:")));
87 me.TD(me, 1, 5.4, e = makeXonoticTextLabel(0, ""));
91 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Key:")));
92 me.TD(me, 1, 5.4, e = makeXonoticTextLabel(0, ""));
96 me.TD(me, 1, 0.8, e = makeXonoticTextLabel(0, _("Stats:")));
97 me.TD(me, 1, 5.4, e = makeXonoticTextLabel(0, ""));
101 me.gotoRC(me, 2, 2.2); me.setFirstColumn(me, me.currentColumn);
102 me.TD(me, 1, 3, e = makeXonoticTextLabel(0, _("Players:")));
104 me.TD(me, me.rows - 8, 4, e = makeXonoticPlayerList());
105 me.rawPlayerList = e;