default statsPage = None
style statsButton is button:
background "#44444450"
hover_background "#DDDDDD50"
style statsButton_text is button_text:
color "#FFFFFF"
hover_color "#000000"
outlines [ (2, "#000000", 1, 1 ) ]
hover_outlines [ ( 2, "#FFFFFF", 1, 1 ) ]
style closeButton is button:
xalign 0.9
yalign 0.9
style closeButton_text is button_text:
size 50
style statsFrame is default:
xpos 0.15
ypos 0.2
xsize 0.85
ysize 0.8
screen stats():
modal True
zorder 100
frame:
background "#00000050"
xpos 0.1 ypos 0.1
xsize 0.9 ysize 0.9
hbox:
textbutton "Suya":
style "statsButton"
action SetVariable( "statsPage", "suya" )
null width 5
textbutton "Liam":
style "statsButton"
action SetVariable( "statsPage", "liam" )
null width 5
# [... Other significant characters' name ...]
if not statsPage is None:
use expression "{}Stats".format( statsPage )
textbutton "Close":
style "closeButton"
action Hide( "stats" )