diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-17 23:12:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-17 23:12:57 -0300 |
commit | 17c529db78f58b844a7a7fa3c5b7c5ab0c9e474f (patch) | |
tree | 0b4917c639e8d29f834a0dcbe09a44cb26e68c42 | |
parent | 5c085d5e96372fdc62c75db96b4a5dac635c121d (diff) | |
download | renpy-17c529db78f58b844a7a7fa3c5b7c5ab0c9e474f.tar.gz renpy-17c529db78f58b844a7a7fa3c5b7c5ab0c9e474f.tar.bz2 renpy-17c529db78f58b844a7a7fa3c5b7c5ab0c9e474f.tar.xz renpy-17c529db78f58b844a7a7fa3c5b7c5ab0c9e474f.zip |
statusmsg may not be rendered but make sure it is set properly
-rw-r--r-- | game/client.rpy | 3 | ||||
-rw-r--r-- | game/renpy.rpy | 2 |
2 files changed, 4 insertions, 1 deletions
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: |