1 #ifndef DIALOG_MULTIPLAYER_JOIN_H
2 #define DIALOG_MULTIPLAYER_JOIN_H
4 CLASS(XonoticServerListTab, XonoticTab)
5 METHOD(XonoticServerListTab, fill, void(entity))
6 ATTRIB(XonoticServerListTab, intendedWidth, float, 0.9)
7 ATTRIB(XonoticServerListTab, rows, float, 23)
8 ATTRIB(XonoticServerListTab, columns, float, 6.5)
9 ENDCLASS(XonoticServerListTab)
10 entity makeXonoticServerListTab();
15 entity makeXonoticServerListTab()
18 me = NEW(XonoticServerListTab);
19 me.configureDialog(me);
22 void XonoticServerListTab_fill(entity me)
26 slist = makeXonoticServerList();
28 me.gotoRC(me, 0.5, 0);
29 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(1, _("Filter:")));
30 me.TD(me, 1, 2.8, e = makeXonoticInputBox(0, string_null));
31 e.onChange = ServerList_Filter_Change;
32 e.onChangeEntity = slist;
33 slist.controlledTextbox = e;
35 me.gotoRC(me, 0.5, 3.6);
36 me.TD(me, 1, 0.9, e = makeXonoticCheckBox(0, "menu_slist_categories", ZCTX(_("SRVS^Categories"))));
37 e.onClickEntity = slist;
38 e.onClick = ServerList_Categories_Click;
39 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showempty", ZCTX(_("SRVS^Empty"))));
40 slist.filterShowEmpty = e.checked;
41 e.onClickEntity = slist;
42 e.onClick = ServerList_ShowEmpty_Click;
43 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showfull", ZCTX(_("SRVS^Full"))));
44 slist.filterShowFull = e.checked;
45 e.onClickEntity = slist;
46 e.onClick = ServerList_ShowFull_Click;
47 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "net_slist_pause", _("Pause")));
50 me.TD(me, 1, 1, slist.sortButton1 = makeXonoticButton(string_null, '0 0 0'));
51 me.TD(me, 1, 1, slist.sortButton2 = makeXonoticButton(string_null, '0 0 0'));
52 me.TD(me, 1, 1, slist.sortButton3 = makeXonoticButton(string_null, '0 0 0'));
53 me.TD(me, 1, 1, slist.sortButton4 = makeXonoticButton(string_null, '0 0 0'));
54 me.TD(me, 1, 1, slist.sortButton5 = makeXonoticButton(string_null, '0 0 0'));
56 me.TD(me, me.rows - 5, me.columns, slist);
58 me.gotoRC(me, me.rows - 2, 0);
59 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(0, _("Address:")));
60 me.TD(me, 1, 2.9, e = makeXonoticInputBox(0, string_null));
61 e.onEnter = ServerList_Connect_Click;
62 e.onEnterEntity = slist;
63 e.onChange = ServerList_Update_favoriteButton;
64 e.onChangeEntity = slist;
65 slist.ipAddressBox = e;
66 me.TD(me, 1, 1.5, e = makeXonoticButton("", '0 0 0'));
67 e.onClick = ServerList_Favorite_Click;
68 e.onClickEntity = slist;
69 slist.favoriteButton = e;
70 me.TD(me, 1, 1.5, e = makeXonoticButton(_("Info..."), '0 0 0'));
71 e.onClick = ServerList_Info_Click;
72 e.onClickEntity = slist;
75 me.TD(me, 1, me.columns, e = makeXonoticButton(_("Join!"), '0 0 0'));
76 e.onClick = ServerList_Connect_Click;
77 e.onClickEntity = slist;
78 slist.connectButton = e;