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
8
void
XonoticQuitDialog_fill
(
entity
me)
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
}
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
makeXonoticCommandButton
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
Definition
commandbutton.qc:11
commandbutton.qh
XonoticQuitDialog_fill
void XonoticQuitDialog_fill(entity me)
Definition
dialog_quit.qc:8
dialog_quit.qh
leavematchbutton.qh
Dialog_Close
void Dialog_Close(entity button, entity me)
Definition
dialog.qc:7
makeXonoticButton
entity makeXonoticButton(string theText, vector theColor)
Definition
button.qc:10
button.qh
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition
textlabel.qc:3
textlabel.qh
menu
xonotic
dialog_quit.qc
Generated on
for Xonotic QuakeC by
1.14.0