Xonotic
tabcontroller.qc
Go to the documentation of this file.
1 #include "tabcontroller.qh"
2 
3 #include "button.qh"
4 
6 {
7  entity me;
9  me.configureXonoticTabController(me, theRows);
10  return me;
11 }
13 {
14  me.rows = theRows;
15 }
16 entity XonoticTabController_makeTabButton_T(entity me, string theTitle, entity tab, string theTooltip)
17 {
18  entity b;
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)
24  return b;
25 }
27 {
28  return XonoticTabController_makeTabButton_T(me, theTitle, tab, string_null);
29 }
string string_null
Definition: nil.qh:9
#define NEW(cname,...)
Definition: oo.qh:105
entity XonoticTabController_makeTabButton_T(entity me, string theTitle, entity tab, string theTooltip)
entity() spawn
void XonoticTabController_configureXonoticTabController(entity me, float theRows)
entity makeXonoticTabController(float theRows)
Definition: tabcontroller.qc:5
entity XonoticTabController_makeTabButton(entity me, string theTitle, entity tab)