From 1555f32044278603b892e500b5d52a00561e715e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 17 May 2021 23:41:50 -0300 Subject: More core stuff for The Void. Now back to the API, got add an extra endpoint -.- --- game/client.rpy | 7 +++++++ game/renpy.rpy | 13 ++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2