diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-08 03:34:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-08 03:34:51 -0300 |
commit | fe939c80b53e28c22e8383bcafe6576263701f09 (patch) | |
tree | 420023e38e00645c68ad6c93d31ea009a29000a4 /game/mirrorlake.rpy | |
parent | 310a9f50af58acfa6428b93e10640d5636226383 (diff) | |
download | renpy-fe939c80b53e28c22e8383bcafe6576263701f09.tar.gz renpy-fe939c80b53e28c22e8383bcafe6576263701f09.tar.bz2 renpy-fe939c80b53e28c22e8383bcafe6576263701f09.tar.xz renpy-fe939c80b53e28c22e8383bcafe6576263701f09.zip |
Add a quick-and-dirty world selection screen
Diffstat (limited to 'game/mirrorlake.rpy')
-rw-r--r-- | game/mirrorlake.rpy | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/game/mirrorlake.rpy b/game/mirrorlake.rpy new file mode 100644 index 0000000..d3892e2 --- /dev/null +++ b/game/mirrorlake.rpy @@ -0,0 +1,106 @@ +################################################################################# +# This file is part of Mana Launcher. +# Copyright (C) 2021 Jesusalva <jesusalva@tmw2.org> +# +# Distributed under the MIT license, except for Steam parts. +################################################################################# +screen mirrorlake(): + default server = None + add "images/default.png" + + fixed: + viewport: + mousewheel True + scrollbars "vertical" + arrowkeys True + pagekeys True + yalign 0.5 + xalign 0.2 + child_size (350, 650) + xmaximum 350 + xminimum 350 + ymaximum 650 + yminimum 650 + vbox: + for (idx, srv) in enumerate(persistent.serverlist): + button: + action SetScreenVariable("server", idx) + fixed: + xmaximum 320 + ymaximum 40 + xalign 0.5 + add Frame("gui/button/choice_hover_background.png", 0, 0) + text _("%s" % srv["Name"]): + color "#FFF" + xalign 0.5 + yalign 0.5 + button: + action Return(None) + fixed: + xmaximum 320 + ymaximum 40 + xalign 0.5 + add Frame("gui/button/choice_hover_background.png", 0, 0) + text _("Cancel"): + 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 + yalign 0.5 + xminimum 600 + xmaximum 600 + yminimum 650 + ymaximum 650 + #add "back" TODO + if server is not None: + vbox: + text _("%s" % persistent.serverlist[server]["Name"]): + size 36 + font "f/Jura-Regular.otf" + color "#FFF" + null height 20 + hbox: + text _("{a=%s}Website{/a}" % persistent.serverlist[server]["Link"]) + null width 20 + text "|" + null width 20 + text _("{a=%s}Support{/a}" % persistent.serverlist[server]["Help"]) + null width 20 + text _("{a=%s}News{/a}" % persistent.serverlist[server]["News"]) + null width 20 + text _("{a=%s}Terms of Use{/a}" % persistent.serverlist[server]["Policy"]) + null height 40 + text _("%s" % persistent.serverlist[server]["Desc"]): + size 24 + color "#FFF" + null height 40 + # TODO: Handle Online List + hbox: + yalign 0.9 + xalign 0.9 + xmaximum 320 + button: + xmaximum 320 + ymaximum 40 + action Return(server) + fixed: + add Frame("gui/button/choice_hover_background.png", 0, 0) + text _("Play!"): + color "#FFF" + xalign 0.5 + yalign 0.5 + |