2 CLASS(VoretTabController) EXTENDS(ModalController)
\r
3 METHOD(VoretTabController, configureVoretTabController, void(entity, float))
\r
4 METHOD(VoretTabController, makeTabButton, entity(entity, string, entity))
\r
5 ATTRIB(VoretTabController, rows, float, 0)
\r
6 ATTRIB(VoretTabController, fontSize, float, SKINFONTSIZE_NORMAL)
\r
7 ATTRIB(VoretTabController, image, string, SKINGFX_BUTTON)
\r
8 ENDCLASS(VoretTabController)
\r
9 entity makeVoretTabController(float theRows);
\r
12 #ifdef IMPLEMENTATION
\r
13 entity makeVoretTabController(float theRows)
\r
16 me = spawnVoretTabController();
\r
17 me.configureVoretTabController(me, theRows);
\r
20 void configureVoretTabControllerVoretTabController(entity me, float theRows)
\r
24 entity makeTabButtonVoretTabController(entity me, string theTitle, entity tab)
\r
27 if(me.rows != tab.rows)
\r
28 error("Tab dialog height mismatch!");
\r
29 b = makeVoretButton(theTitle, '0 0 0');
\r
30 me.addTab(me, tab, b);
\r
31 // TODO make this real tab buttons (with color parameters, and different gfx)
\r