2 CLASS(XonoticServerListTab) EXTENDS(XonoticTab)
3 METHOD(XonoticServerListTab, fill, void(entity))
4 ATTRIB(XonoticServerListTab, intendedWidth, float, 0.9)
5 ATTRIB(XonoticServerListTab, rows, float, 23)
6 ATTRIB(XonoticServerListTab, columns, float, 6.5)
7 ENDCLASS(XonoticServerListTab)
8 entity makeXonoticServerListTab();
13 entity makeXonoticServerListTab()
16 me = spawnXonoticServerListTab();
17 me.configureDialog(me);
20 void XonoticServerListTab_fill(entity me)
24 slist = makeXonoticServerList();
26 me.gotoRC(me, 0.5, 0);
27 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(1, _("Filter:")));
28 me.TD(me, 1, 2.8, e = makeXonoticInputBox(0, string_null));
29 e.onChange = ServerList_Filter_Change;
30 e.onChangeEntity = slist;
31 slist.controlledTextbox = e;
33 me.gotoRC(me, 0.5, 3.6);
34 me.TD(me, 1, 0.9, e = makeXonoticCheckBox(0, "menu_slist_categories", ZCTX(_("SRVS^Categories"))));
35 e.onClickEntity = slist;
36 e.onClick = ServerList_Categories_Click;
37 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showempty", ZCTX(_("SRVS^Empty"))));
38 slist.filterShowEmpty = e.checked;
39 e.onClickEntity = slist;
40 e.onClick = ServerList_ShowEmpty_Click;
41 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showfull", ZCTX(_("SRVS^Full"))));
42 slist.filterShowFull = e.checked;
43 e.onClickEntity = slist;
44 e.onClick = ServerList_ShowFull_Click;
45 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "net_slist_pause", _("Pause")));
48 me.TD(me, 1, 1, slist.sortButton1 = makeXonoticButton(string_null, '0 0 0'));
49 me.TD(me, 1, 1, slist.sortButton2 = makeXonoticButton(string_null, '0 0 0'));
50 me.TD(me, 1, 1, slist.sortButton3 = makeXonoticButton(string_null, '0 0 0'));
51 me.TD(me, 1, 1, slist.sortButton4 = makeXonoticButton(string_null, '0 0 0'));
52 me.TD(me, 1, 1, slist.sortButton5 = makeXonoticButton(string_null, '0 0 0'));
54 me.TD(me, me.rows - 5, me.columns, slist);
56 me.gotoRC(me, me.rows - 2, 0);
57 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(0, _("Address:")));
58 me.TD(me, 1, 2.9, e = makeXonoticInputBox(0, string_null));
59 e.onEnter = ServerList_Connect_Click;
60 e.onEnterEntity = slist;
61 e.onChange = ServerList_Update_favoriteButton;
62 e.onChangeEntity = slist;
63 slist.ipAddressBox = e;
64 me.TD(me, 1, 1.5, e = makeXonoticButton("", '0 0 0'));
65 e.onClick = ServerList_Favorite_Click;
66 e.onClickEntity = slist;
67 slist.favoriteButton = e;
68 me.TD(me, 1, 1.5, e = makeXonoticButton(_("Info..."), '0 0 0'));
69 e.onClick = ServerList_Info_Click;
70 e.onClickEntity = slist;
73 me.TD(me, 1, me.columns, e = makeXonoticButton(_("Join!"), '0 0 0'));
74 e.onClick = ServerList_Connect_Click;
75 e.onClickEntity = slist;
76 slist.connectButton = e;