################################################################################# # This file is part of Mana Launcher. # Copyright (C) 2021 Jesusalva # # 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: ## 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) 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("QUIT") fixed: xmaximum 320 ymaximum 40 xalign 0.5 add Frame("gui/button/choice_hover_background.png", 0, 0) text _("Quit"): color "#FFF" 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 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