Xonotic
commandbutton.qh File Reference
#include "button.qh"
+ Include dependency graph for commandbutton.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  XonoticCommandButton
 

Macros

#define COMMANDBUTTON_APPLY   2
 
#define COMMANDBUTTON_CLOSE   1
 

Functions

entity makeXonoticCommandButton (string theText, vector theColor, string theCommand, int theFlags)
 
entity makeXonoticCommandButton_T (string theText, vector theColor, string theCommand, int theFlags, string theTooltip)
 

Macro Definition Documentation

◆ COMMANDBUTTON_APPLY

#define COMMANDBUTTON_APPLY   2

Definition at line 15 of file commandbutton.qh.

◆ COMMANDBUTTON_CLOSE

#define COMMANDBUTTON_CLOSE   1

Definition at line 14 of file commandbutton.qh.

Referenced by makeTeamButton_T(), and XonoticCommandButton_Click().

Function Documentation

◆ makeXonoticCommandButton()

entity makeXonoticCommandButton ( string  theText,
vector  theColor,
string  theCommand,
int  theFlags 
)

Definition at line 10 of file commandbutton.qc.

References makeXonoticCommandButton_T(), and string_null.

Referenced by XonoticAudioSettingsTab_fill(), XonoticEffectsSettingsTab_fill(), XonoticGameWeaponsSettingsTab_fill(), XonoticProfileTab_fill(), and XonoticVideoSettingsTab_fill().

11 {
12  return makeXonoticCommandButton_T(theText, theColor, theCommand, theFlags, string_null);
13 }
string string_null
Definition: nil.qh:9
entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, int theFlags, string theTooltip)
Definition: commandbutton.qc:3
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeXonoticCommandButton_T()

entity makeXonoticCommandButton_T ( string  theText,
vector  theColor,
string  theCommand,
int  theFlags,
string  theTooltip 
)

Definition at line 3 of file commandbutton.qc.

References entity(), and NEW.

Referenced by makeXonoticCommandButton().

4 {
5  entity me;
7  me.configureXonoticCommandButton(me, theText, theColor, theCommand, theFlags, theTooltip);
8  return me;
9 }
#define NEW(cname,...)
Definition: oo.qh:105
entity() spawn
+ Here is the call graph for this function:
+ Here is the caller graph for this function: