diff options
-rw-r--r-- | game/client.rpy | 7 | ||||
-rw-r--r-- | game/renpy.rpy | 13 |
2 files changed, 19 insertions, 1 deletions
diff --git a/game/client.rpy b/game/client.rpy index 0214678..9b5a8fe 100644 --- a/game/client.rpy +++ b/game/client.rpy @@ -135,4 +135,11 @@ init 2 python: renpy.notify("An error happened.") return + ############################################ + # TODO: Launch thread requesting /soul data + def load_souldata(): + global progress + progress = 100 + return + diff --git a/game/renpy.rpy b/game/renpy.rpy index 610fcee..f87c368 100644 --- a/game/renpy.rpy +++ b/game/renpy.rpy @@ -261,10 +261,21 @@ Soul Level remains constant regardless of the subworld you're at.{/color}{fast}" ################################################################################# label thevoid: - # TODO: Launch thread requesting /soul data + $ progress = 0 + $ renpy.invoke_in_thread(load_souldata) scene DKBG show expression (ManaSparkle().sm) as flare with Dissolve(1.0) + # Block the main thread until the socket connection is done + show expression Text(_("{color=#FFF}Loading user data...{/color}")) at truecenter as loader + with None + python: + while progress < 100: + if responsive: + sdelay() + else: + break + hide loader with None pause scene black with Dissolve(1.5) pause 0.15 |