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

Go to the source code of this file.

Functions

void XonoticQuitDialog_fill (entity me)

Function Documentation

◆ XonoticQuitDialog_fill()

void XonoticQuitDialog_fill ( entity me)

Definition at line 8 of file dialog_quit.qc.

9{
10 entity e;
11 me.TR(me);
12 me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("Are you sure you want to quit?")));
13 me.TR(me);
14 me.TR(me);
15 me.TD(me, 1, 1, e = makeXonoticCommandButton(_("Yes"), '1 0 0', "echo ]quit; quit", 0));
16 me.TD(me, 1, 1, e = makeXonoticButton(_("No"), '0 1 0'));
17 e.onClick = Dialog_Close;
18 e.onClickEntity = me;
19}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
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(), makeXonoticButton(), makeXonoticCommandButton(), and makeXonoticTextLabel().