2 CLASS(XonoticTabController) EXTENDS(ModalController)
3 METHOD(XonoticTabController, configureXonoticTabController, void(entity, float))
4 METHOD(XonoticTabController, makeTabButton, entity(entity, string, entity))
5 ATTRIB(XonoticTabController, rows, float, 0)
6 ATTRIB(XonoticTabController, fontSize, float, SKINFONTSIZE_NORMAL)
7 ATTRIB(XonoticTabController, image, string, SKINGFX_BUTTON)
8 ENDCLASS(XonoticTabController)
9 entity makeXonoticTabController(float theRows);
13 entity makeXonoticTabController(float theRows)
16 me = spawnXonoticTabController();
17 me.configureXonoticTabController(me, theRows);
20 void XonoticTabController_configureXonoticTabController(entity me, float theRows)
24 entity XonoticTabController_makeTabButton(entity me, string theTitle, entity tab)
27 if(me.rows != tab.rows)
28 error("Tab dialog height mismatch!");
29 b = makeXonoticButton(theTitle, '0 0 0');
30 me.addTab(me, tab, b);
31 // TODO make this real tab buttons (with color parameters, and different gfx)