From e685c6bbe60409940b77710205b8ce2779889b82 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sun, 5 Jun 2022 04:29:00 +1000 Subject: [PATCH] Welcome dialog: use capitals in Join and Spectate, fix compilation unit test --- qcsrc/menu/xonotic/commandbutton.qh | 1 + qcsrc/menu/xonotic/dialog_welcome.qc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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)); } -- 2.39.2