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

Go to the source code of this file.

Functions

void HUDSetup_Start (entity me, entity btn)
void XonoticHUDConfirmDialog_fill (entity me)

Function Documentation

◆ HUDSetup_Start()

void HUDSetup_Start ( entity me,
entity btn )

Definition at line 6 of file dialog_settings_game_hudconfirm.qc.

7{
9 localcmd("map _hudsetup\n");
10 else
11 localcmd("togglemenu 0\n");
12
13 localcmd("_hud_configure 1\n");
14}
const int GAME_ISSERVER
Definition menu.qh:11
const int GAME_CONNECTED
Definition menu.qh:12
int gamestatus
Definition menu.qh:16
void localcmd(string command,...)

References entity(), GAME_CONNECTED, GAME_ISSERVER, gamestatus, and localcmd().

Referenced by HUDSetup_Check_Gamestatus(), and XonoticHUDConfirmDialog_fill().

◆ XonoticHUDConfirmDialog_fill()

void XonoticHUDConfirmDialog_fill ( entity me)

Definition at line 16 of file dialog_settings_game_hudconfirm.qc.

17{
18 entity e;
19
20 me.TR(me);
21 me.TD(me, 1, 2, e = makeXonoticTextLabel(0.5, _("In order for the HUD editor to show, you must first be in game.")));
22 me.TR(me);
23 me.TD(me, 1, 2, e = makeXonoticTextLabel(0.5, _("Do you wish to start a local game to set up the HUD?")));
24 me.TR(me);
25 me.TR(me);
26 me.TD(me, 1, 1, e = makeXonoticButton(_("Yes"), '1 0 0'));
27 e.onClick = HUDSetup_Start;
28 e.onClickEntity = me;
29 me.TD(me, 1, 1, e = makeXonoticButton(_("No"), '0 1 0'));
30 e.onClick = Dialog_Close;
31 e.onClickEntity = me;
32}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void HUDSetup_Start(entity me, entity btn)
void Dialog_Close(entity button, entity me)
Definition dialog.qc:7
entity makeXonoticButton(string theText, vector theColor)
Definition button.qc:10
entity makeXonoticTextLabel(float theAlign, string theText)
Definition textlabel.qc:3

References Dialog_Close(), entity(), HUDSetup_Start(), makeXonoticButton(), and makeXonoticTextLabel().