From: bones_was_here Date: Sat, 4 Jun 2022 18:29:00 +0000 (+1000) Subject: Welcome dialog: use capitals in Join and Spectate, fix compilation unit test X-Git-Tag: xonotic-v0.8.5~21^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e685c6bbe60409940b77710205b8ce2779889b82;p=xonotic%2Fxonotic-data.pk3dir.git Welcome dialog: use capitals in Join and Spectate, fix compilation unit test --- diff --git a/qcsrc/menu/xonotic/commandbutton.qh b/qcsrc/menu/xonotic/commandbutton.qh index cd1063523..7e5044c24 100644 --- a/qcsrc/menu/xonotic/commandbutton.qh +++ b/qcsrc/menu/xonotic/commandbutton.qh @@ -9,6 +9,7 @@ ENDCLASS(XonoticCommandButton) entity makeXonoticCommandButton_T(string theText, vector theColor, string theCommand, int theFlags, string theTooltip); entity makeXonoticCommandButton(string theText, vector theColor, string theCommand, int theFlags); +void XonoticCommandButton_Click(entity me, entity other); #ifndef COMMANDBUTTON_CLOSE # define COMMANDBUTTON_CLOSE 1 diff --git a/qcsrc/menu/xonotic/dialog_welcome.qc b/qcsrc/menu/xonotic/dialog_welcome.qc index bf4edb9c7..3c5c0b353 100644 --- a/qcsrc/menu/xonotic/dialog_welcome.qc +++ b/qcsrc/menu/xonotic/dialog_welcome.qc @@ -95,7 +95,7 @@ void XonoticWelcomeDialog_fill(entity me) me.serverinfo_MOTD_ent.allowColors = true; me.serverinfo_MOTD_ent.escapedNewLines = true; me.gotoRC(me, me.rows - 1, 0); - me.TD(me, 1, me.columns / 2, me.joinButton_ent = makeXonoticCommandButton(_("join"), '0 1 0', "cmd join", COMMANDBUTTON_CLOSE)); + me.TD(me, 1, me.columns / 2, me.joinButton_ent = makeXonoticCommandButton(_("Join"), '0 1 0', "cmd join", COMMANDBUTTON_CLOSE)); me.joinButton_ent.preferredFocusPriority = 1; - me.TD(me, 1, me.columns / 2, makeXonoticCommandButton(_("spectate"), '0 0 0', "cmd spectate", COMMANDBUTTON_CLOSE)); + me.TD(me, 1, me.columns / 2, makeXonoticCommandButton(_("Spectate"), '0 0 0', "cmd spectate", COMMANDBUTTON_CLOSE)); }