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