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
3entity makeXonoticButton_T(string theText, vector theColor, string theTooltip)
4{
5 entity me;
6 me = NEW(XonoticButton);
7 me.configureXonoticButton(me, theText, theColor, theTooltip);
8 return me;
9}
10entity makeXonoticButton(string theText, vector theColor)
11{
12 return makeXonoticButton_T(theText, theColor, string_null);
13}
14
15void XonoticButton_configureXonoticButton(entity me, string theText, vector theColor, string theTooltip)
16{
17 if(theColor == '0 0 0')
18 {
19 me.configureButton(me, theText, me.fontSize, me.image);
20 }
21 else
22 {
23 me.configureButton(me, theText, me.fontSize, me.grayImage);
24 me.color = theColor;
25 me.colorC = theColor;
26 me.colorF = theColor;
27 }
28 setZonedTooltip(me, theTooltip, string_null);
29}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void XonoticButton_configureXonoticButton(entity me, string theText, vector theColor, string theTooltip)
Definition button.qc:15
entity makeXonoticButton_T(string theText, vector theColor, string theTooltip)
Definition button.qc:3
entity makeXonoticButton(string theText, vector theColor)
Definition button.qc:10
void setZonedTooltip(entity e, string theTooltip, string theCvar)
Definition util.qc:257
string string_null
Definition nil.qh:9
#define NEW(cname,...)
Definition oo.qh:117
vector
Definition self.qh:92