From: terencehill Date: Fri, 15 Apr 2022 22:31:24 +0000 (+0200) Subject: Rename Leave match button to Stop demo while playing back a demo X-Git-Tag: xonotic-v0.8.5~71 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=85484cb583b57000ddf67b7b89ac6b08c38e77cd;p=xonotic%2Fxonotic-data.pk3dir.git Rename Leave match button to Stop demo while playing back a demo --- diff --git a/qcsrc/menu/xonotic/leavematchbutton.qc b/qcsrc/menu/xonotic/leavematchbutton.qc index e58cbc54a..d2117356b 100644 --- a/qcsrc/menu/xonotic/leavematchbutton.qc +++ b/qcsrc/menu/xonotic/leavematchbutton.qc @@ -10,6 +10,8 @@ string leaveMatchButton_getText(entity me) { if (me.disabled) return _("Leave current match"); + else if(isdemo()) + return _("Stop demo"); else if(cvar("g_campaign")) return _("Leave campaign"); else if (isServerSingleplayer()) @@ -20,7 +22,7 @@ string leaveMatchButton_getText(entity me) string leaveMatchButton_getTooltip(entity me) { - if (me.disabled) + if (me.disabled || isdemo()) return "-"; else if(cvar("g_campaign")) return _("Leave current campaign level");