Xonotic
dialog_multiplayer_join_serverinfotab.qc
Go to the documentation of this file.
1
#include "
dialog_multiplayer_join_serverinfo.qh
"
2
#include "
dialog_multiplayer_join_serverinfotab.qh
"
3
#include <
common/mapinfo.qh
>
4
5
#include "
serverlist.qh
"
6
#include "
playerlist.qh
"
7
#include "
inputbox.qh
"
8
#include "
textlabel.qh
"
9
#include "
button.qh
"
10
11
12
entity
makeXonoticServerInfoTab
()
13
{
14
entity
me;
15
me =
NEW
(
XonoticServerInfoTab
);
16
me.configureDialog(me);
17
return
me;
18
}
19
20
void
XonoticServerInfoTab_fill
(
entity
me)
21
{
22
entity
e;
23
me.TR(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;
27
e.allowCut = 1;
28
me.nameLabel = e;
29
me.TR(me);
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;
33
e.allowCut = 1;
34
me.cnameLabel = e;
35
36
me.TR(me);
37
me.TR(me);
38
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Gametype:"
)));
39
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
40
e.allowCut = 1;
41
me.typeLabel = e;
42
me.TR(me);
43
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Map:"
)));
44
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
45
e.allowCut = 1;
46
me.mapLabel = e;
47
me.TR(me);
48
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Mod:"
)));
49
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
50
e.allowCut = 1;
51
me.modLabel = e;
52
me.TR(me);
53
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Version:"
)));
54
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
55
e.allowCut = 1;
56
me.versionLabel = e;
57
me.TR(me);
58
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Settings:"
)));
59
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
60
e.allowCut = 1;
61
me.pureLabel = e;
62
63
me.TR(me);
64
me.TR(me);
65
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Players:"
)));
66
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
67
e.allowCut = 1;
68
me.numPlayersLabel = e;
69
me.TR(me);
70
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Bots:"
)));
71
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
72
e.allowCut = 1;
73
me.numBotsLabel = e;
74
me.TR(me);
75
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Free slots:"
)));
76
me.TD(me, 1, 1.2, e =
makeXonoticTextLabel
(0,
""
));
77
e.allowCut = 1;
78
me.numFreeSlotsLabel = e;
79
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,
""
));
83
e.allowCut = 1;
84
me.encryptLabel = e;
85
me.TR(me);
86
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"ID:"
)));
87
me.TD(me, 1, 5.4, e =
makeXonoticTextLabel
(0,
""
));
88
e.allowCut = 1;
89
me.keyLabel = e;
90
me.TR(me);
91
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Key:"
)));
92
me.TD(me, 1, 5.4, e =
makeXonoticTextLabel
(0,
""
));
93
e.allowCut = 1;
94
me.idLabel = e;
95
me.TR(me);
96
me.TD(me, 1, 0.8, e =
makeXonoticTextLabel
(0, _(
"Stats:"
)));
97
me.TD(me, 1, 5.4, e =
makeXonoticTextLabel
(0,
""
));
98
e.allowCut = 1;
99
me.statsLabel = e;
100
101
me.gotoRC(me, 2, 2.2); me.setFirstColumn(me, me.currentColumn);
102
me.TD(me, 1, 3, e =
makeXonoticTextLabel
(0, _(
"Players:"
)));
103
me.TR(me);
104
me.TD(me, me.rows - 8, 4, e =
makeXonoticPlayerList
());
105
me.rawPlayerList = e;
106
}
107
NEW
#define NEW(cname,...)
Definition:
oo.qh:105
entity
entity() spawn
dialog_multiplayer_join_serverinfotab.qh
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition:
textlabel.qc:3
XonoticServerInfoTab
Definition:
dialog_multiplayer_join_serverinfotab.qh:4
dialog_multiplayer_join_serverinfo.qh
makeXonoticPlayerList
entity makeXonoticPlayerList()
Definition:
playerlist.qc:11
playerlist.qh
inputbox.qh
mapinfo.qh
textlabel.qh
button.qh
serverlist.qh
XonoticServerInfoTab_fill
void XonoticServerInfoTab_fill(entity me)
Definition:
dialog_multiplayer_join_serverinfotab.qc:20
makeXonoticServerInfoTab
entity makeXonoticServerInfoTab()
Definition:
dialog_multiplayer_join_serverinfotab.qc:12
menu
xonotic
dialog_multiplayer_join_serverinfotab.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13