1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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("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
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
|