1 #ifndef TABCONTROLLER_H
2 #define TABCONTROLLER_H
3 CLASS(XonoticTabController, ModalController)
4 METHOD(XonoticTabController, configureXonoticTabController, void(entity, float))
5 METHOD(XonoticTabController, makeTabButton, entity(entity, string, entity))
6 ATTRIB(XonoticTabController, rows, float, 0)
7 ATTRIB(XonoticTabController, fontSize, float, SKINFONTSIZE_NORMAL)
8 ATTRIB(XonoticTabController, image, string, SKINGFX_BUTTON)
9 ENDCLASS(XonoticTabController)
10 entity makeXonoticTabController(float theRows);
14 entity makeXonoticTabController(float theRows)
17 me = NEW(XonoticTabController);
18 me.configureXonoticTabController(me, theRows);
21 void XonoticTabController_configureXonoticTabController(entity me, float theRows)
25 entity XonoticTabController_makeTabButton(entity me, string theTitle, entity tab)
28 if(me.rows != tab.rows)
29 error("Tab dialog height mismatch!");
30 b = makeXonoticButton(theTitle, '0 0 0');
31 me.addTab(me, tab, b);
32 // TODO make this real tab buttons (with color parameters, and different gfx)