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

Go to the source code of this file.

Functions

entity makeXonoticHeaderLabel (string theText)
 
entity makeXonoticTextLabel (float theAlign, string theText)
 
void XonoticTextLabel_configureXonoticTextLabel (entity me, float theAlign, string theText)
 
void XonoticTextLabel_draw (entity me)
 

Function Documentation

◆ makeXonoticHeaderLabel()

entity makeXonoticHeaderLabel ( string  theText)

Definition at line 10 of file textlabel.qc.

References entity(), and makeXonoticTextLabel().

Referenced by XonoticGameHUDSettingsTab_fill(), XonoticGameMessageSettingsTab_fill(), XonoticGameModelSettingsTab_fill(), XonoticHUDExitDialog_fill(), XonoticInputSettingsTab_fill(), XonoticMiscSettingsTab_fill(), XonoticServerCreateTab_fill(), and XonoticUserSettingsTab_fill().

11 {
12  entity me;
13  me = makeXonoticTextLabel(0.5, theText);
14  me.colorL = SKINCOLOR_HEADER;
15  me.alpha = SKINALPHA_HEADER;
16  me.isBold = true;
17  return me;
18 }
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeXonoticTextLabel()

entity makeXonoticTextLabel ( float  theAlign,
string  theText 
)

Definition at line 3 of file textlabel.qc.

References entity(), and NEW.

Referenced by dialog_hudpanel_main_settings(), GameType_GetIcon(), makeXonoticHeaderLabel(), XonoticBindingsResetDialog_fill(), XonoticCvarsDialog_fill(), XonoticDemoBrowserTab_fill(), XonoticDemoStartConfirmDialog_fill(), XonoticDemoTimeConfirmDialog_fill(), XonoticDisconnectDialog_fill(), XonoticFirstRunDialog_fill(), XonoticHUDAmmoDialog_fill(), XonoticHUDCenterprintDialog_fill(), XonoticHUDChatDialog_fill(), XonoticHUDConfirmDialog_fill(), XonoticHUDEngineInfoDialog_fill(), XonoticHUDInfoMessagesDialog_fill(), XonoticHUDNotificationDialog_fill(), XonoticHUDQuickMenuDialog_fill(), XonoticHUDScoreDialog_fill(), XonoticHUDTimerDialog_fill(), XonoticHUDVoteDialog_fill(), XonoticHUDWeaponsDialog_fill(), XonoticLanguageWarningDialog_fill(), XonoticMapInfoDialog_fill(), XonoticMonsterToolsDialog_fill(), XonoticMusicPlayerTab_fill(), XonoticMutatorsDialog_fill(), XonoticQuitDialog_fill(), XonoticResetDialog_fill(), XonoticSandboxToolsDialog_fill(), XonoticScreenshotBrowserTab_fill(), XonoticServerInfoTab_fill(), XonoticUid2NameDialog_fill(), and XonoticUserbindEditDialog_fill().

4 {
5  entity me;
6  me = NEW(XonoticTextLabel);
7  me.configureXonoticTextLabel(me, theAlign, theText);
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:

◆ XonoticTextLabel_configureXonoticTextLabel()

void XonoticTextLabel_configureXonoticTextLabel ( entity  me,
float  theAlign,
string  theText 
)

Definition at line 19 of file textlabel.qc.

20 {
21  me.configureLabel(me, theText, me.fontSize, theAlign);
22 }

◆ XonoticTextLabel_draw()

void XonoticTextLabel_draw ( entity  me)

Definition at line 23 of file textlabel.qc.

References SUPER.

24 {
25  SUPER(XonoticTextLabel).draw(me);
26 }
#define SUPER(cname)
Definition: oo.qh:219