Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
tabcontroller.qc
Go to the documentation of this file.
1#include "tabcontroller.qh"
2
3#include "button.qh"
4
6{
8 me.configureXonoticTabController(me, theRows);
9 return me;
10}
12{
13 me.rows = theRows;
14}
15entity XonoticTabController_makeTabButton_T(entity me, string theTitle, entity tab, string theTooltip)
16{
17 entity b;
18 if(me.rows != tab.rows)
19 error("Tab dialog height mismatch!");
20 b = makeXonoticButton_T(theTitle, '0 0 0', theTooltip);
21 me.addTab(me, tab, b);
22 // TODO make this real tab buttons (with color parameters, and different gfx)
23 return b;
24}
26{
27 return XonoticTabController_makeTabButton_T(me, theTitle, tab, string_null);
28}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeXonoticButton_T(string theText, vector theColor, string theTooltip)
Definition button.qc:3
string string_null
Definition nil.qh:9
#define NEW(cname,...)
Definition oo.qh:117
#define error
Definition pre.qh:6
entity makeXonoticTabController(float theRows)
entity XonoticTabController_makeTabButton(entity me, string theTitle, entity tab)
entity XonoticTabController_makeTabButton_T(entity me, string theTitle, entity tab, string theTooltip)
void XonoticTabController_configureXonoticTabController(entity me, float theRows)