X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fxonotic%2Fdialog_firstrun.qc;h=27c922fbe97533774f63f711ac9ed47a1ac2e7ec;hp=90988703e0e5f9fa491ef0759e2a95a358b7fec3;hb=cd508c593bc52d211c1675e1e52ae741cc487ab3;hpb=4e85c153239969d8dccea38031e18ddb24b6c935 diff --git a/qcsrc/menu/xonotic/dialog_firstrun.qc b/qcsrc/menu/xonotic/dialog_firstrun.qc index 90988703e..27c922fbe 100644 --- a/qcsrc/menu/xonotic/dialog_firstrun.qc +++ b/qcsrc/menu/xonotic/dialog_firstrun.qc @@ -1,6 +1,8 @@ -#ifdef INTERFACE -CLASS(XonoticFirstRunDialog) EXTENDS(XonoticRootDialog) - METHOD(XonoticFirstRunDialog, fill, void(entity)) // to be overridden by user to fill the dialog with controls +#ifndef DIALOG_FIRSTRUN_H +#define DIALOG_FIRSTRUN_H +#include "rootdialog.qc" +CLASS(XonoticFirstRunDialog, XonoticRootDialog) + METHOD(XonoticFirstRunDialog, fill, void(entity)); // to be overridden by user to fill the dialog with controls ATTRIB(XonoticFirstRunDialog, title, string, _("Welcome")) ATTRIB(XonoticFirstRunDialog, color, vector, SKINCOLOR_DIALOG_FIRSTRUN) ATTRIB(XonoticFirstRunDialog, intendedWidth, float, 0.7) @@ -56,10 +58,12 @@ void XonoticFirstRunDialog_fill(entity me) label.allowColors = 1; label.alpha = 1; me.TR(me); - me.TD(me, 1, 3.75, box = makeXonoticInputBox(1, "_cl_name")); + me.TD(me, 1, 3.75, box = makeXonoticInputBox_T(1, "_cl_name", + _("Name under which you will appear in the game"))); box.forbiddenCharacters = "\r\n\\\"$"; // don't care, isn't getting saved box.maxLength = -127; // negative means encoded length in bytes - box.saveImmediately = 1; + box.saveImmediately = 0; // Sorry, can't do this, it spams "name" commands. + box.enableClearButton = 0; label.textEntity = box; me.TR(me); me.TD(me, 5, 1.25, e = makeXonoticColorpicker(box)); @@ -84,9 +88,9 @@ void XonoticFirstRunDialog_fill(entity me) me.gotoRC(me, me.rows - 3, 0); me.TDempty(me, 1.5); - me.TD(me, 1, 1, e = makeXonoticRadioButton(1, "cl_allow_uid2name", "1", ZCTX(_("ALWU2N^Yes")))); - me.TD(me, 1, 1, e = makeXonoticRadioButton(1, "cl_allow_uid2name", "0", ZCTX(_("ALWU2N^No")))); - me.TD(me, 1, 1, e = makeXonoticRadioButton(1, "cl_allow_uid2name", "-1", ZCTX(_("ALWU2N^Undecided")))); + me.TD(me, 1, 1, e = makeXonoticRadioButton(1, "cl_allow_uid2name", "1", _("Yes"))); + me.TD(me, 1, 1, e = makeXonoticRadioButton(1, "cl_allow_uid2name", "0", _("No"))); + me.TD(me, 1, 1, e = makeXonoticRadioButton(1, "cl_allow_uid2name", "-1", _("Undecided"))); // because of the language selector, this is a menu_restart! me.gotoRC(me, me.rows - 1, 0);