From: LegendaryGuard Date: Mon, 13 Dec 2021 01:08:40 +0000 (+0100) Subject: Green button(Accept), red button(Don't accept) and red background ToS menu design X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4371a394abc1143cef472dabdfa96d448ac220c;p=xonotic%2Fxonotic-data.pk3dir.git Green button(Accept), red button(Don't accept) and red background ToS menu design --- diff --git a/qcsrc/menu/xonotic/dialog_termsofservice.qc b/qcsrc/menu/xonotic/dialog_termsofservice.qc index 66dde13ea..913d9aafe 100644 --- a/qcsrc/menu/xonotic/dialog_termsofservice.qc +++ b/qcsrc/menu/xonotic/dialog_termsofservice.qc @@ -80,23 +80,23 @@ void XonoticToSDialog_fill(entity me) subtitle = _("Welcome to Xonotic! Please read the following Terms of Service:"); me.TR(me); - me.TD(me, 1, 5, e = makeXonoticTextLabel(0, subtitle)); - e.allowWrap = 1; + me.TD(me, 1, 5, e = makeXonoticTextLabel(0, subtitle)); + e.allowWrap = 1; me.TR(me); me.TR(me); - me.TD(me, me.rows - 4, me.columns, me.textBox = makeXonoticTextBox()); - me.loadXonoticToS(me); + me.TD(me, me.rows - 4, me.columns, me.textBox = makeXonoticTextBox()); + me.loadXonoticToS(me); me.TR(me); me.gotoRC(me, me.rows - 1, 0); - me.TD(me, 1, me.columns/2, e = makeXonoticButton(_("Accept"), '0 0 0')); - e.onClick = Close_Clicked; - e.onClickEntity = me; + me.TD(me, 1, me.columns/2, e = makeXonoticButton(_("Accept"), '0 1 0')); + e.onClick = Close_Clicked; + e.onClickEntity = me; - me.TD(me, 1, me.columns/2, e = makeXonoticButton(_("Don't accept (quit the game)"), '0 0 0')); - e.onClick = DontAccept_Clicked; - e.onClickEntity = me; + me.TD(me, 1, me.columns/2, e = makeXonoticButton(_("Don't accept (quit the game)"), '1 0 0')); + e.onClick = DontAccept_Clicked; + e.onClickEntity = me; } diff --git a/qcsrc/menu/xonotic/dialog_termsofservice.qh b/qcsrc/menu/xonotic/dialog_termsofservice.qh index cb1f27927..6a1125520 100644 --- a/qcsrc/menu/xonotic/dialog_termsofservice.qh +++ b/qcsrc/menu/xonotic/dialog_termsofservice.qh @@ -9,7 +9,7 @@ CLASS(XonoticToSDialog, XonoticRootDialog) METHOD(XonoticToSDialog, fill, void(entity)); METHOD(XonoticToSDialog, loadXonoticToS, void(entity)); ATTRIB(XonoticToSDialog, title, string, _("Terms of Service")); - ATTRIB(XonoticToSDialog, color, vector, SKINCOLOR_DIALOG_FIRSTRUN); + ATTRIB(XonoticToSDialog, color, vector, SKINCOLOR_DIALOG_CVARS); ATTRIB(XonoticToSDialog, intendedWidth, float, 0.8); ATTRIB(XonoticToSDialog, rows, float, 16); ATTRIB(XonoticToSDialog, columns, float, 6.2);