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

Go to the source code of this file.

Classes

class  XonoticButton
 

Functions

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

Function Documentation

◆ makeXonoticButton()

entity makeXonoticButton ( string  theText,
vector  theColor 
)

Definition at line 10 of file button.qc.

References makeXonoticButton_T(), and string_null.

Referenced by XonoticCreditsDialog_fill(), XonoticScreenshotViewerDialog_fill(), and XonoticWinnerDialog_fill().

11 {
12  return makeXonoticButton_T(theText, theColor, string_null);
13 }
string string_null
Definition: nil.qh:9
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeXonoticButton_T()

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

Definition at line 3 of file button.qc.

References entity(), and NEW.

Referenced by makeXonoticButton(), and XonoticTabController_makeTabButton_T().

4 {
5  entity me;
6  me = NEW(XonoticButton);
7  me.configureXonoticButton(me, theText, theColor, 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: