2 CLASS(XonoticServerListTab) EXTENDS(XonoticTab)
3 METHOD(XonoticServerListTab, fill, void(entity))
4 ATTRIB(XonoticServerListTab, title, string, _("Join"))
5 ATTRIB(XonoticServerListTab, intendedWidth, float, 0.9)
6 ATTRIB(XonoticServerListTab, rows, float, 22)
7 ATTRIB(XonoticServerListTab, columns, float, 6.5)
8 ENDCLASS(XonoticServerListTab)
9 entity makeXonoticServerListTab();
14 entity makeXonoticServerListTab()
17 me = spawnXonoticServerListTab();
18 me.configureDialog(me);
21 void XonoticServerListTab_fill(entity me)
25 slist = makeXonoticServerList();
28 me.TD(me, 1, 0.4, e = makeXonoticTextLabel(0, _("Filter:")));
29 me.TD(me, 1, me.columns - 0.6 * 3 - 0.4, e = makeXonoticInputBox(0, string_null));
30 e.onChange = ServerList_Filter_Change;
31 e.onChangeEntity = slist;
32 slist.controlledTextbox = e;
33 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showempty", ZCTX(_("SRVS^Empty"))));
34 slist.filterShowEmpty = e.checked;
35 e.onClickEntity = slist;
36 e.onClick = ServerList_ShowEmpty_Click;
37 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showfull", ZCTX(_("SRVS^Full"))));
38 slist.filterShowFull = e.checked;
39 e.onClickEntity = slist;
40 e.onClick = ServerList_ShowFull_Click;
41 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "net_slist_pause", _("Pause")));
44 me.TD(me, 1, 1, slist.sortButton1 = makeXonoticButton(string_null, '0 0 0'));
45 me.TD(me, 1, 1, slist.sortButton2 = makeXonoticButton(string_null, '0 0 0'));
46 me.TD(me, 1, 1, slist.sortButton3 = makeXonoticButton(string_null, '0 0 0'));
47 me.TD(me, 1, 1, slist.sortButton4 = makeXonoticButton(string_null, '0 0 0'));
48 me.TD(me, 1, 1, slist.sortButton5 = makeXonoticButton(string_null, '0 0 0'));
50 me.TD(me, me.rows - 4, me.columns, slist);
52 me.gotoRC(me, me.rows - 2, 0);
53 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(0, _("Address:")));
54 me.TD(me, 1, 2.9, e = makeXonoticInputBox(0, string_null));
55 e.onEnter = ServerList_Connect_Click;
56 e.onEnterEntity = slist;
57 e.onChange = ServerList_Update_favoriteButton;
58 e.onChangeEntity = slist;
59 slist.ipAddressBox = e;
60 me.TD(me, 1, 1.5, e = makeXonoticButton("", '0 0 0'));
61 e.onClick = ServerList_Favorite_Click;
62 e.onClickEntity = slist;
63 slist.favoriteButton = e;
64 me.TD(me, 1, 1.5, e = makeXonoticButton(_("Info..."), '0 0 0'));
65 e.onClick = ServerList_Info_Click;
66 e.onClickEntity = slist;
69 me.TD(me, 1, me.columns, e = makeXonoticButton(_("Join!"), '0 0 0'));
70 e.onClick = ServerList_Connect_Click;
71 e.onClickEntity = slist;
72 slist.connectButton = e;