Xonotic
dialog_settings_misc_reset.qc
Go to the documentation of this file.
1
#include "
dialog_settings_misc_reset.qh
"
2
3
#include "
textlabel.qh
"
4
#include "
commandbutton.qh
"
5
#include "
button.qh
"
6
7
void
XonoticResetDialog_fill
(
entity
me)
8
{
9
entity
e;
10
me.TR(me);
11
me.TD(me, 1, 2,
makeXonoticTextLabel
(0.5, _(
"Are you sure you want to reset all settings?"
)));
12
me.TR(me);
13
me.TD(me, 1, 2,
makeXonoticTextLabel
(0.5, _(
"This will create a backup config in your data directory"
)));
14
me.TR(me);
15
me.TR(me);
16
me.TD(me, 1, 1, e =
makeXonoticCommandButton
(_(
"Yes"
),
'1 0 0'
,
"saveconfig backup.cfg\n;\n exec default.cfg\n"
, 0));
17
me.TD(me, 1, 1, e =
makeXonoticButton
(_(
"No"
),
'0 1 0'
));
18
e.onClick =
Dialog_Close
;
19
e.onClickEntity = me;
20
}
dialog_settings_misc_reset.qh
makeXonoticButton
entity makeXonoticButton(string theText, vector theColor)
Definition:
button.qc:10
Dialog_Close
void Dialog_Close(entity button, entity me)
Definition:
dialog.qc:7
entity
entity() spawn
makeXonoticTextLabel
entity makeXonoticTextLabel(float theAlign, string theText)
Definition:
textlabel.qc:3
XonoticResetDialog_fill
void XonoticResetDialog_fill(entity me)
Definition:
dialog_settings_misc_reset.qc:7
textlabel.qh
button.qh
makeXonoticCommandButton
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
Definition:
commandbutton.qc:10
commandbutton.qh
menu
xonotic
dialog_settings_misc_reset.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13