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 fillXonoticServerListTab(entity me)
25 slist = makeXonoticServerList();
28 me.TD(me, 1, 0.4, e = makeXonoticTextLabel(0, "Filter:"));
29 me.TD(me, 1, 0.6, btn = makeXonoticButton("Clear", '0 0 0'));
30 btn.onClick = InputBox_Clear_Click;
31 me.TD(me, 1, me.columns - 0.6 * 4 - 0.4, e = makeXonoticInputBox(0, string_null));
32 e.onChange = ServerList_Filter_Change;
33 e.onChangeEntity = slist;
34 btn.onClickEntity = e;
35 slist.controlledTextbox = e;
36 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showempty", "Empty"));
37 slist.filterShowEmpty = e.checked;
38 e.onClickEntity = slist;
39 e.onClick = ServerList_ShowEmpty_Click;
40 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "menu_slist_showfull", "Full"));
41 slist.filterShowFull = e.checked;
42 e.onClickEntity = slist;
43 e.onClick = ServerList_ShowFull_Click;
44 me.TD(me, 1, 0.6, e = makeXonoticCheckBox(0, "net_slist_pause", "Pause"));
47 me.TD(me, 1, 1, slist.sortButton1 = makeXonoticButton(string_null, '0 0 0'));
48 me.TD(me, 1, 1, slist.sortButton2 = makeXonoticButton(string_null, '0 0 0'));
49 me.TD(me, 1, 1, slist.sortButton3 = makeXonoticButton(string_null, '0 0 0'));
50 me.TD(me, 1, 1, slist.sortButton4 = makeXonoticButton(string_null, '0 0 0'));
51 me.TD(me, 1, 1, slist.sortButton5 = makeXonoticButton(string_null, '0 0 0'));
53 me.TD(me, me.rows - 4, me.columns, slist);
55 me.gotoRC(me, me.rows - 2, 0);
56 me.TD(me, 1, 0.6, e = makeXonoticTextLabel(0, "Address:"));
57 me.TD(me, 1, 2.9, e = makeXonoticInputBox(0, string_null));
58 e.onEnter = ServerList_Connect_Click;
59 e.onEnterEntity = 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;