]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename Leave match button to Stop demo while playing back a demo
authorterencehill <piuntn@gmail.com>
Fri, 15 Apr 2022 22:31:24 +0000 (00:31 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 15 Apr 2022 22:31:24 +0000 (00:31 +0200)
qcsrc/menu/xonotic/leavematchbutton.qc

index e58cbc54a2c4b1be3df950a8c53dd60fc453781d..d2117356b8bb91e56db337cae535084e45e09848 100644 (file)
@@ -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");