Xonotic
tabcontroller.qc File Reference
#include "tabcontroller.qh"
#include "button.qh"
+ Include dependency graph for tabcontroller.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity makeXonoticTabController (float theRows)
 
void XonoticTabController_configureXonoticTabController (entity me, float theRows)
 
entity XonoticTabController_makeTabButton (entity me, string theTitle, entity tab)
 
entity XonoticTabController_makeTabButton_T (entity me, string theTitle, entity tab, string theTooltip)
 

Function Documentation

◆ makeXonoticTabController()

entity makeXonoticTabController ( float  theRows)

Definition at line 5 of file tabcontroller.qc.

References entity(), and NEW.

Referenced by XonoticMediaTab_fill(), XonoticMultiplayerDialog_fill(), XonoticServerInfoDialog_fill(), and XonoticSettingsDialog_fill().

6 {
7  entity me;
9  me.configureXonoticTabController(me, theRows);
10  return me;
11 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ XonoticTabController_configureXonoticTabController()

void XonoticTabController_configureXonoticTabController ( entity  me,
float  theRows 
)

Definition at line 12 of file tabcontroller.qc.

13 {
14  me.rows = theRows;
15 }

◆ XonoticTabController_makeTabButton()

entity XonoticTabController_makeTabButton ( entity  me,
string  theTitle,
entity  tab 
)

Definition at line 26 of file tabcontroller.qc.

References string_null, and XonoticTabController_makeTabButton_T().

27 {
28  return XonoticTabController_makeTabButton_T(me, theTitle, tab, string_null);
29 }
string string_null
Definition: nil.qh:9
entity XonoticTabController_makeTabButton_T(entity me, string theTitle, entity tab, string theTooltip)
+ Here is the call graph for this function:

◆ XonoticTabController_makeTabButton_T()

entity XonoticTabController_makeTabButton_T ( entity  me,
string  theTitle,
entity  tab,
string  theTooltip 
)

Definition at line 16 of file tabcontroller.qc.

References entity(), error(), and makeXonoticButton_T().

Referenced by XonoticTabController_makeTabButton().

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 }
entity() spawn
+ Here is the call graph for this function:
+ Here is the caller graph for this function: