X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_firstrun.qc;h=0d3b5c97512ef212be117cebc8f90ae6424be842;hb=1ff1288152dd20786853bed28c9d9aad1f21c8a5;hp=f117d3a6f48a71ff7312da6d056d9a3098d039b6;hpb=826222f84e886d85179a032b07edc71d99982040;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/xonotic/dialog_firstrun.qc b/qcsrc/menu/xonotic/dialog_firstrun.qc index f117d3a6f..0d3b5c975 100644 --- a/qcsrc/menu/xonotic/dialog_firstrun.qc +++ b/qcsrc/menu/xonotic/dialog_firstrun.qc @@ -1,23 +1,13 @@ #include "dialog_firstrun.qh" -#ifndef DIALOG_FIRSTRUN_H -#define DIALOG_FIRSTRUN_H -#include "rootdialog.qc" -CLASS(XonoticFirstRunDialog, XonoticRootDialog) - METHOD(XonoticFirstRunDialog, fill, void(entity)); - ATTRIB(XonoticFirstRunDialog, title, string, _("Welcome")) - ATTRIB(XonoticFirstRunDialog, color, vector, SKINCOLOR_DIALOG_FIRSTRUN) - ATTRIB(XonoticFirstRunDialog, intendedWidth, float, 0.7) - ATTRIB(XonoticFirstRunDialog, rows, float, 16) - ATTRIB(XonoticFirstRunDialog, columns, float, 6) - ATTRIB(XonoticFirstRunDialog, name, string, "FirstRun") - ATTRIB(XonoticFirstRunDialog, playerNameLabel, entity, NULL) - ATTRIB(XonoticFirstRunDialog, playerNameLabelAlpha, float, 0) - ATTRIB(XonoticFirstRunDialog, closable, float, 0) -ENDCLASS(XonoticFirstRunDialog) -#endif +#include "textlabel.qh" +#include "inputbox.qh" +#include "languagelist.qh" +#include "radiobutton.qh" +#include "colorpicker.qh" +#include "charmap.qh" +#include "commandbutton.qh" -#ifdef IMPLEMENTATION float CheckFirstRunButton(entity me) { if(cvar_string("_cl_name") != cvar_defstring("_cl_name")) @@ -98,4 +88,3 @@ void XonoticFirstRunDialog_fill(entity me) me.TD(me, 1, me.columns, e = makeXonoticCommandButton(_("Save settings"), '0 0 0', "prvm_language \"$_menu_prvm_language\"; saveconfig; menu_restart", COMMANDBUTTON_APPLY)); setDependentWeird(e, CheckFirstRunButton); } -#endif