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, 23)
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();
29 me.TD(me, 1, 0.5, e = makeXonoticTextLabel(0, _("Filter:")));
30 me.TD(me, 1, me.columns - 0.6 * 3 - 0.5, e = makeXonoticInputBox(0, string_null));
31 e.onChange = ServerList_Filter_Change;
32 e.onChangeEntity = slist;
33 slist.controlledTextbox = e;
34 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showempty", ZCTX(_("SRVS^Empty"))));
35 slist.filterShowEmpty = e.checked;
36 e.onClickEntity = slist;
37 e.onClick = ServerList_ShowEmpty_Click;
38 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showfull", ZCTX(_("SRVS^Full"))));
39 slist.filterShowFull = e.checked;
40 e.onClickEntity = slist;
41 e.onClick = ServerList_ShowFull_Click;
42 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "net_slist_pause", _("Pause")));
45 me.TD(me, 1, 1, slist.sortButton1 = makeXonoticButton(string_null, '0 0 0'));
46 me.TD(me, 1, 1, slist.sortButton2 = makeXonoticButton(string_null, '0 0 0'));
47 me.TD(me, 1, 1, slist.sortButton3 = makeXonoticButton(string_null, '0 0 0'));
48 me.TD(me, 1, 1, slist.sortButton4 = makeXonoticButton(string_null, '0 0 0'));
49 me.TD(me, 1, 1, slist.sortButton5 = makeXonoticButton(string_null, '0 0 0'));
51 me.TD(me, me.rows - 5, me.columns, slist);
53 me.gotoRC(me, me.rows - 2, 0);
54 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(0, _("Address:")));
55 me.TD(me, 1, 2.9, e = makeXonoticInputBox(0, string_null));
56 e.onEnter = ServerList_Connect_Click;
57 e.onEnterEntity = slist;
58 e.onChange = ServerList_Update_favoriteButton;
59 e.onChangeEntity = slist;
60 slist.ipAddressBox = e;
61 me.TD(me, 1, 1.5, e = makeXonoticButton("", '0 0 0'));
62 e.onClick = ServerList_Favorite_Click;
63 e.onClickEntity = slist;
64 slist.favoriteButton = e;
65 me.TD(me, 1, 1.5, e = makeXonoticButton(_("Info..."), '0 0 0'));
66 e.onClick = ServerList_Info_Click;
67 e.onClickEntity = slist;
70 me.TD(me, 1, me.columns, e = makeXonoticButton(_("Join!"), '0 0 0'));
71 e.onClick = ServerList_Connect_Click;
72 e.onClickEntity = slist;
73 slist.connectButton = e;