summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-17 22:48:01 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-17 22:48:01 -0300
commitf55c8a2a8105d3458806f98cacbd83a6729a6c66 (patch)
tree17db218c732cf00ed7b66a37694867669c2016aa
parent938b2d9bc2b018253dfe2db23c68404968c74751 (diff)
downloadrenpy-f55c8a2a8105d3458806f98cacbd83a6729a6c66.tar.gz
renpy-f55c8a2a8105d3458806f98cacbd83a6729a6c66.tar.bz2
renpy-f55c8a2a8105d3458806f98cacbd83a6729a6c66.tar.xz
renpy-f55c8a2a8105d3458806f98cacbd83a6729a6c66.zip
Prepare support for The Void
-rw-r--r--game/mirrorlake.rpy62
-rw-r--r--game/renpy.rpy11
2 files changed, 48 insertions, 25 deletions
diff --git a/game/mirrorlake.rpy b/game/mirrorlake.rpy
index 1c8da88..f9fcba1 100644
--- a/game/mirrorlake.rpy
+++ b/game/mirrorlake.rpy
@@ -22,17 +22,20 @@ screen mirrorlake():
ymaximum 650
yminimum 650
vbox:
- #button:
- # action SetScreenVariable("server", None)
- # fixed:
- # xmaximum 320
- # ymaximum 40
- # xalign 0.5
- # add Frame("gui/button/choice_hover_background.png", 0, 0)
- # text _("{b}The Void{/b}"):
- # color "#F2F"
- # xalign 0.5
- # yalign 0.5
+ ## The Void
+ button:
+ action SetScreenVariable("server", None)
+ fixed:
+ xmaximum 320
+ ymaximum 40
+ xalign 0.5
+ add Frame("gui/button/choice_hover_background.png", 0, 0)
+ text _("{b}The Void{/b}"):
+ color "#F2F"
+ xalign 0.5
+ yalign 0.5
+
+ ## Normal Worlds
for (idx, srv) in enumerate(persistent.serverlist):
button:
action SetScreenVariable("server", idx)
@@ -56,18 +59,6 @@ screen mirrorlake():
color "#FFF"
xalign 0.5
yalign 0.5
- showif config.developer:
- button:
- action SetScreenVariable("server", None)
- fixed:
- xmaximum 320
- ymaximum 40
- xalign 0.5
- add Frame("gui/button/choice_hover_background.png", 0, 0)
- text _("{b}Clear Screen{/b}"):
- color "#F2F"
- xalign 0.5
- yalign 0.5
fixed:
xalign 0.9
@@ -114,4 +105,29 @@ screen mirrorlake():
color "#FFF"
xalign 0.5
yalign 0.5
+ if server is None:
+ vbox:
+ text _("The Void"):
+ size 36
+ font "f/Jura-Regular.otf"
+ color "#FFF"
+ null height 80
+ text _("Restore your soul from the multiple worlds where it was scattered, and in due time, The Void shall reveal to you, the truth of this multiverse..."):
+ size 24
+ color "#FFF"
+ null height 40
+ hbox:
+ yalign 0.9
+ xalign 0.9
+ xmaximum 320
+ button:
+ xmaximum 320
+ ymaximum 40
+ action Return(-1)
+ fixed:
+ add Frame("gui/button/choice_hover_background.png", 0, 0)
+ text _("Play!"):
+ color "#FFF"
+ xalign 0.5
+ yalign 0.5
diff --git a/game/renpy.rpy b/game/renpy.rpy
index 6ab5eaf..88df51b 100644
--- a/game/renpy.rpy
+++ b/game/renpy.rpy
@@ -93,16 +93,23 @@ label start:
#centered "Error"
#if config.developer:
# "User ID: [vaultId]"
+label start_loop:
while True:
$ renpy.block_rollback()
call screen mirrorlake
- #if config.developer:
- # "Selected: [_return]"
+ ## Quit request
if _return is None or _return == "QUIT":
$ stdout("Good bye!")
$ renpy.quit()
return
+ ## Asked for The Void
+ if _return < 0:
+ $ stdout("V0id")
+ jump start_loop
+ ## Asked for any subworld
scene black
+ # FIXME: Improve this waiting screen
+ # Possibly retrieve messages from the thread
show expression Text("{color=#FFF}"+_("Game in session:\n%s" % (persistent.serverlist[_return]["Name"]))+"{/color}") at truecenter
with None
pause 0.01