Xonotic
dialog_multiplayer_media.qc
Go to the documentation of this file.
2 
3 #include "demolist.qh"
9 
10 #include "tabcontroller.qh"
11 
13 {
14  entity me;
15  me = NEW(XonoticMediaTab);
16  me.configureDialog(me);
17  return me;
18 }
20 {
21  entity mc, e;
22  mc = makeXonoticTabController(me.rows - 2);
23 
24  me.gotoRC(me, 0.5, 0);
25  me.TD(me, 1, 1, e = mc.makeTabButton(mc, _("Demos"), makeXonoticDemoBrowserTab()));
26  me.TD(me, 1, 1, e = mc.makeTabButton(mc, _("Screenshots"), makeXonoticScreenshotBrowserTab()));
27  me.TD(me, 1, 1, e = mc.makeTabButton(mc, _("Music Player"), makeXonoticMusicPlayerTab()));
28 
29  me.gotoRC(me, 3, 0);
30  me.TD(me, me.rows - 2, me.columns, mc);
31 }
#define NEW(cname,...)
Definition: oo.qh:105
entity makeXonoticScreenshotBrowserTab()
entity() spawn
entity makeXonoticMusicPlayerTab()
entity makeXonoticMediaTab()
entity makeXonoticDemoBrowserTab()
void XonoticMediaTab_fill(entity me)
entity makeXonoticTabController(float theRows)
Definition: tabcontroller.qc:5