1 #ifndef DIALOG_SETTINGS_MISC_RESET_H
2 #define DIALOG_SETTINGS_MISC_RESET_H
4 CLASS(XonoticResetDialog, XonoticDialog)
5 METHOD(XonoticResetDialog, fill, void(entity))
6 ATTRIB(XonoticResetDialog, title, string, _("Factory reset"))
7 ATTRIB(XonoticResetDialog, color, vector, SKINCOLOR_DIALOG_QUIT)
8 ATTRIB(XonoticResetDialog, intendedWidth, float, 0.5)
9 ATTRIB(XonoticResetDialog, rows, float, 4)
10 ATTRIB(XonoticResetDialog, columns, float, 2)
11 ATTRIB(XonoticResetDialog, name, string, "Factory reset")
12 ENDCLASS(XonoticResetDialog)
16 void XonoticResetDialog_fill(entity me)
20 me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("Are you sure you want to reset all settings?")));
22 me.TD(me, 1, 2, makeXonoticTextLabel(0.5, _("This will create a backup config in your data directory")));
25 me.TD(me, 1, 1, e = makeXonoticCommandButton(_("Yes"), '1 0 0', "saveconfig backup.cfg\n;\n exec defaultXonotic.cfg\n", 0));
26 me.TD(me, 1, 1, e = makeXonoticButton(_("No"), '0 1 0'));
27 e.onClick = Dialog_Close;