]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/xonotic/dialog_multiplayer_join_serverinfo.qh
Merge branch 'master' into Mirio/balance
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / dialog_multiplayer_join_serverinfo.qh
1 #pragma once
2
3 #include "dialog.qh"
4 CLASS(XonoticServerInfoDialog, XonoticDialog)
5         METHOD(XonoticServerInfoDialog, fill, void(entity));
6         METHOD(XonoticServerInfoDialog, loadServerInfo, void(entity, float));
7         ATTRIB(XonoticServerInfoDialog, title, string, _("Server Information"));
8         ATTRIB(XonoticServerInfoDialog, color, vector, SKINCOLOR_DIALOG_SERVERINFO);
9         ATTRIB(XonoticServerInfoDialog, intendedWidth, float, 0.8);
10         ATTRIB(XonoticServerInfoDialog, rows, float, 18);
11         ATTRIB(XonoticServerInfoDialog, columns, float, 6.2);
12
13         ATTRIB(XonoticServerInfoDialog, currentServerName, string);
14         ATTRIB(XonoticServerInfoDialog, currentServerCName, string);
15         ATTRIB(XonoticServerInfoDialog, currentServerType, string);
16         ATTRIB(XonoticServerInfoDialog, currentServerMap, string);
17         ATTRIB(XonoticServerInfoDialog, currentServerPlayers, string);
18         ATTRIB(XonoticServerInfoDialog, currentServerNumPlayers, string);
19         ATTRIB(XonoticServerInfoDialog, currentServerNumBots, string);
20         ATTRIB(XonoticServerInfoDialog, currentServerNumFreeSlots, string);
21         ATTRIB(XonoticServerInfoDialog, currentServerMod, string);
22         ATTRIB(XonoticServerInfoDialog, currentServerVersion, string);
23         ATTRIB(XonoticServerInfoDialog, currentServerKey, string);
24         ATTRIB(XonoticServerInfoDialog, currentServerID, string);
25         ATTRIB(XonoticServerInfoDialog, currentServerEncrypt, string);
26         ATTRIB(XonoticServerInfoDialog, currentServerPure, string);
27
28         ATTRIB(XonoticServerInfoDialog, nameLabel, entity);
29         ATTRIB(XonoticServerInfoDialog, cnameLabel, entity);
30         ATTRIB(XonoticServerInfoDialog, typeLabel, entity);
31         ATTRIB(XonoticServerInfoDialog, mapLabel, entity);
32         ATTRIB(XonoticServerInfoDialog, rawPlayerList, entity);
33         ATTRIB(XonoticServerInfoDialog, numPlayersLabel, entity);
34         ATTRIB(XonoticServerInfoDialog, numBotsLabel, entity);
35         ATTRIB(XonoticServerInfoDialog, numFreeSlotsLabel, entity);
36         ATTRIB(XonoticServerInfoDialog, modLabel, entity);
37         ATTRIB(XonoticServerInfoDialog, versionLabel, entity);
38         ATTRIB(XonoticServerInfoDialog, keyLabel, entity);
39         ATTRIB(XonoticServerInfoDialog, idLabel, entity);
40         ATTRIB(XonoticServerInfoDialog, encryptLabel, entity);
41         ATTRIB(XonoticServerInfoDialog, canConnectLabel, entity);
42         ATTRIB(XonoticServerInfoDialog, pureLabel, entity);
43 ENDCLASS(XonoticServerInfoDialog)
44
45 void Join_Click(entity btn, entity me);