1 #include "tabcontroller.qh"
5 entity makeXonoticTabController(float theRows)
8 me = NEW(XonoticTabController);
9 me.configureXonoticTabController(me, theRows);
12 void XonoticTabController_configureXonoticTabController(entity me, float theRows)
16 entity XonoticTabController_makeTabButton_T(entity me, string theTitle, entity tab, string theTooltip)
19 if(me.rows != tab.rows)
20 error("Tab dialog height mismatch!");
21 b = makeXonoticButton_T(theTitle, '0 0 0', theTooltip);
22 me.addTab(me, tab, b);
23 // TODO make this real tab buttons (with color parameters, and different gfx)
26 entity XonoticTabController_makeTabButton(entity me, string theTitle, entity tab)
28 return XonoticTabController_makeTabButton_T(me, theTitle, tab, string_null);