1 #ifndef DIALOG_MULTIPLAYER_MEDIA_H
2 #define DIALOG_MULTIPLAYER_MEDIA_H
4 CLASS(XonoticMediaTab, XonoticTab)
5 METHOD(XonoticMediaTab, fill, void(entity))
6 ATTRIB(XonoticMediaTab, intendedWidth, float, 0.9)
7 ATTRIB(XonoticMediaTab, rows, float, 23)
8 ATTRIB(XonoticMediaTab, columns, float, 3)
9 ATTRIB(XonoticMediaTab, name, string, "Media")
10 ENDCLASS(XonoticMediaTab)
11 entity makeXonoticMediaTab();
15 entity makeXonoticMediaTab()
18 me = NEW(XonoticMediaTab);
19 me.configureDialog(me);
22 void XonoticMediaTab_fill(entity me)
25 mc = makeXonoticTabController(me.rows - 2);
27 me.gotoRC(me, 0.5, 0);
28 me.TD(me, 1, 1, e = mc.makeTabButton(mc, _("Demos"), makeXonoticDemoBrowserTab()));
29 me.TD(me, 1, 1, e = mc.makeTabButton(mc, _("Screenshots"), makeXonoticScreenshotBrowserTab()));
30 me.TD(me, 1, 1, e = mc.makeTabButton(mc, _("Music Player"), makeXonoticMusicPlayerTab()));
33 me.TD(me, me.rows - 2, me.columns, mc);