From 17c529db78f58b844a7a7fa3c5b7c5ab0c9e474f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 17 May 2021 23:12:57 -0300 Subject: statusmsg may not be rendered but make sure it is set properly --- game/client.rpy | 3 +++ game/renpy.rpy | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/game/client.rpy b/game/client.rpy index aece878..19aa8d2 100644 --- a/game/client.rpy +++ b/game/client.rpy @@ -35,6 +35,7 @@ init 2 python: ######################################################################## ## Obtain access token from vault ## Failures are skipped (!!) unless they are a 403 (FORBIDDEN) + statusmsg=_("Requesting credentials from Vault...") auth = {"vaultId": vaultId, "token": vaultToken, "world": persistent.serverlist[idx]["UUID"]} @@ -75,6 +76,7 @@ init 2 python: ######################################################################## ## Loop + statusmsg="" try: ## Minimize to tray if set if not renpy.mobile and persistent.iconify: @@ -102,6 +104,7 @@ init 2 python: ######################################################################## ## Cleanup + statusmsg=_("Thanks for playing!") progress=100 # Clean discord RPC and go back to world selection menu diff --git a/game/renpy.rpy b/game/renpy.rpy index 2a23125..a94dba1 100644 --- a/game/renpy.rpy +++ b/game/renpy.rpy @@ -111,7 +111,7 @@ label start_loop: # FIXME: Improve this waiting screen # Possibly retrieve messages from the thread $ statusmsg="" - show expression Text("{color=#FFF}"+_("Game in session:\n%s\n\n%s" % (persistent.serverlist[_return]["Name"], statusmsg))+"{/color}") at truecenter + show expression Text("{color=#FFF}"+_("Game in session:\n%s" % (persistent.serverlist[_return]["Name"]))+"{/color}") at truecenter with None pause 0.01 python: -- cgit v1.2.3-70-g09d2