Xonotic
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 "button.qh"
6 
8 {
9  entity e;
10  me.TR(me);
11  me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("Are you sure you want to quit?")));
12  me.TR(me);
13  me.TR(me);
14  me.TD(me, 1, 1, e = makeXonoticCommandButton_T(_("Yes"), '1 0 0', "echo ]quit; quit", 0,
15  _("Back to work...")));
16  me.TD(me, 1, 1, e = makeXonoticButton_T(_("No"), '0 1 0',
17  _("I got some more fragging to do!")));
18  e.onClick = Dialog_Close;
19  e.onClickEntity = me;
20 }
void XonoticQuitDialog_fill(entity me)
Definition: dialog_quit.qc:7
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, int theFlags, string theTooltip)
Definition: commandbutton.qc:3