Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
dialog_quit.qc
Go to the documentation of this file.
1#include "dialog_quit.qh"
2
3#include "textlabel.qh"
4#include "commandbutton.qh"
5#include "leavematchbutton.qh"
6#include "button.qh"
7
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 XonoticQuitDialog_fill(entity me)
Definition dialog_quit.qc:8
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