Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
tab.qh
Go to the documentation of this file.
1
#pragma once
2
3
#include "
../item/tab.qh
"
4
CLASS
(
XonoticTab
,
Tab
)
5
// still to be customized by user
6
/*
7
ATTRIB(XonoticTab, intendedWidth, float, 0);
8
ATTRIB(XonoticTab, rows, float, 3);
9
ATTRIB(XonoticTab, columns, float, 2);
10
*/
11
METHOD
(
XonoticTab
,
showNotify
,
void
(
entity
));
12
13
ATTRIB
(
XonoticTab
,
marginTop
,
float
, 0);
// pixels
14
ATTRIB
(
XonoticTab
,
marginBottom
,
float
, 0);
// pixels
15
ATTRIB
(
XonoticTab
,
marginLeft
,
float
, 0);
// pixels
16
ATTRIB
(
XonoticTab
,
marginRight
,
float
, 0);
// pixels
17
ATTRIB
(
XonoticTab
,
columnSpacing
,
float
, SKINMARGIN_COLUMNS);
// pixels
18
ATTRIB
(
XonoticTab
,
rowSpacing
,
float
, SKINMARGIN_ROWS);
// pixels
19
ATTRIB
(
XonoticTab
,
rowHeight
,
float
, SKINFONTSIZE_NORMAL * SKINHEIGHT_NORMAL);
// pixels
20
21
ATTRIB
(
XonoticTab
, backgroundImage,
string
);
22
23
// using "titleTooltip" instead of "tooltip" so that
24
// the tooltip search function doesn't find it
25
// .tooltip should be set only in the item displaying the tab title
26
ATTRIB
(
XonoticTab
, titleTooltip,
string
);
27
ENDCLASS
(
XonoticTab
)
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
Tab
Definition
tab.qh:4
XonoticTab
Definition
tab.qh:4
XonoticTab::marginTop
float marginTop
Definition
tab.qh:13
XonoticTab::rowSpacing
float rowSpacing
Definition
tab.qh:18
XonoticTab::marginLeft
float marginLeft
Definition
tab.qh:15
XonoticTab::showNotify
virtual void showNotify()
XonoticTab::rowHeight
float rowHeight
Definition
tab.qh:19
XonoticTab::marginBottom
float marginBottom
Definition
tab.qh:14
XonoticTab::columnSpacing
float columnSpacing
Definition
tab.qh:17
XonoticTab::marginRight
float marginRight
Definition
tab.qh:16
XonoticTab::ATTRIB
ATTRIB(XonoticTab, backgroundImage, string)
tab.qh
CLASS
#define CLASS(...)
Definition
oo.qh:145
ENDCLASS
#define ENDCLASS(cname)
Definition
oo.qh:281
METHOD
#define METHOD(cname, name, prototype)
Definition
oo.qh:269
menu
xonotic
tab.qh
Generated on
for Xonotic QuakeC by
1.14.0