Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
button.qc File Reference
#include "button.qh"
Include dependency graph for button.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

entity makeXonoticButton (string theText, vector theColor)
entity makeXonoticButton_T (string theText, vector theColor, string theTooltip)
void XonoticButton_configureXonoticButton (entity me, string theText, vector theColor, string theTooltip)

Function Documentation

◆ makeXonoticButton()

◆ makeXonoticButton_T()

entity makeXonoticButton_T ( string theText,
vector theColor,
string theTooltip )

Definition at line 3 of file button.qc.

4{
6 me.configureXonoticButton(me, theText, theColor, theTooltip);
7 return me;
8}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define NEW(cname,...)
Definition oo.qh:117

References entity(), NEW, and vector.

Referenced by makeXonoticButton(), XonoticCvarsDialog_fill(), XonoticDemoBrowserTab_fill(), XonoticHUDExitDialog_fill(), XonoticMiscSettingsTab_fill(), XonoticServerCreateTab_fill(), XonoticServerListTab_fill(), and XonoticTabController_makeTabButton_T().

◆ XonoticButton_configureXonoticButton()

void XonoticButton_configureXonoticButton ( entity me,
string theText,
vector theColor,
string theTooltip )

Definition at line 14 of file button.qc.

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}
void setZonedTooltip(entity e, string theTooltip, string theCvar)
Definition util.qc:257

References entity(), setZonedTooltip(), string_null, and vector.