diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-17 23:41:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-17 23:41:50 -0300 |
commit | 1555f32044278603b892e500b5d52a00561e715e (patch) | |
tree | 5875807fecd72727f56c69a48e7eb2932613ba33 | |
parent | 6b909e034303cfdc12a1b7e40432b79fd5183fa2 (diff) | |
download | renpy-1555f32044278603b892e500b5d52a00561e715e.tar.gz renpy-1555f32044278603b892e500b5d52a00561e715e.tar.bz2 renpy-1555f32044278603b892e500b5d52a00561e715e.tar.xz renpy-1555f32044278603b892e500b5d52a00561e715e.zip |
More core stuff for The Void.
Now back to the API, got add an extra endpoint -.-
-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 |