Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
button.qc
Go to the documentation of this file.
1
#include "
button.qh
"
2
3
entity
makeXonoticButton_T
(
string
theText,
vector
theColor,
string
theTooltip)
4
{
5
entity
me =
NEW
(
XonoticButton
);
6
me.configureXonoticButton(me, theText, theColor, theTooltip);
7
return
me;
8
}
9
entity
makeXonoticButton
(
string
theText,
vector
theColor)
10
{
11
return
makeXonoticButton_T
(theText, theColor,
string_null
);
12
}
13
14
void
XonoticButton_configureXonoticButton
(
entity
me,
string
theText,
vector
theColor,
string
theTooltip)
15
{
16
if
(theColor ==
'0 0 0'
)
17
{
18
me.configureButton(me, theText, me.fontSize, me.image);
19
}
20
else
21
{
22
me.configureButton(me, theText, me.fontSize, me.grayImage);
23
me.color = theColor;
24
me.colorC = theColor;
25
me.colorF = theColor;
26
}
27
setZonedTooltip
(me, theTooltip,
string_null
);
28
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
XonoticButton
Definition
button.qh:4
XonoticButton_configureXonoticButton
void XonoticButton_configureXonoticButton(entity me, string theText, vector theColor, string theTooltip)
Definition
button.qc:14
makeXonoticButton_T
entity makeXonoticButton_T(string theText, vector theColor, string theTooltip)
Definition
button.qc:3
makeXonoticButton
entity makeXonoticButton(string theText, vector theColor)
Definition
button.qc:9
button.qh
setZonedTooltip
void setZonedTooltip(entity e, string theTooltip, string theCvar)
Definition
util.qc:257
string_null
string string_null
Definition
nil.qh:9
NEW
#define NEW(cname,...)
Definition
oo.qh:117
vector
vector
Definition
self.qh:92
menu
xonotic
button.qc
Generated on
for Xonotic QuakeC by
1.14.0