Xonotic
dialog_settings_misc_reset.qc File Reference
#include "dialog_settings_misc_reset.qh"
#include "textlabel.qh"
#include "commandbutton.qh"
#include "button.qh"
+ Include dependency graph for dialog_settings_misc_reset.qc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void XonoticResetDialog_fill (entity me)
 

Function Documentation

◆ XonoticResetDialog_fill()

void XonoticResetDialog_fill ( entity  me)

Definition at line 7 of file dialog_settings_misc_reset.qc.

References entity(), and makeXonoticTextLabel().

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 }
entity() spawn
entity makeXonoticTextLabel(float theAlign, string theText)
Definition: textlabel.qc:3
entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags)
+ Here is the call graph for this function: