From: terencehill Date: Mon, 23 Mar 2015 19:14:53 +0000 (+0100) Subject: Welcome dialog: add an OK button X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=64c284ce6797295f21cb751fd0b1af9f83508b75;p=xonotic%2Fxonotic-data.pk3dir.git Welcome dialog: add an OK button --- diff --git a/qcsrc/menu/xonotic/dialog_welcome.qc b/qcsrc/menu/xonotic/dialog_welcome.qc index 93d948c55..624fc0aff 100644 --- a/qcsrc/menu/xonotic/dialog_welcome.qc +++ b/qcsrc/menu/xonotic/dialog_welcome.qc @@ -108,7 +108,9 @@ void XonoticWelcomeDialog_fill(entity me) me.TD(me, me.rows - 4 - 1, me.columns, me.serverinfo_MOTD_ent = makeXonoticTextListBox()); me.serverinfo_MOTD_ent.allowColors = 1; me.gotoRC(me, me.rows - 1, 0); - me.TDempty(me, 1); me.TD(me, 1, me.columns / 2, e = makeXonoticCommandButton(_("Disconnect"), '0 0 0', "disconnect", COMMANDBUTTON_CLOSE)); + me.TD(me, 1, me.columns / 2, e = makeXonoticButton(_("OK"), '0 0 0')); + e.onClick = Dialog_Close; + e.onClickEntity = me; } #endif