WTS/game/scripts/rooms/quidditch_stands2/init.rpy
Gouvernathor 094b010b7a Avoid using lists
(cherry picked from commit 78230893a8)
2024-03-24 16:22:53 +00:00

35 lines
997 B
Plaintext

# Quidditch stands
default quidditch_stands2 = {
"weather": "sun_high",
"crowd": (),
"crowd_react": (None, None, None),
}
label quidditch_stands2(hidden=False, reset=False, **kwargs):
if reset:
$ reset_variables("quidditch_stands2")
$ quidditch_stands2.update(kwargs)
if not hidden:
show screen quidditch_stands_back2(**quidditch_stands2)
show screen quidditch_stands_front2(**quidditch_stands2)
return
screen quidditch_stands_back2(weather, crowd=(), crowd_react=(None, None, None), **kwargs):
zorder 0
add "images/rooms/quidditch_stands2/bg_{}.webp".format(weather) zoom 0.5
for c in crowd:
add "images/rooms/quidditch_stands2/crowd_{}.webp".format(c) zoom 0.5
add crowd_react[0] pos (570, 140)
add crowd_react[1] pos (720, 90)
add crowd_react[2] pos (960, 60)
screen quidditch_stands_front2(weather, **kwargs):
zorder 8
add "images/rooms/quidditch_stands2/fg_{}.webp".format(weather) zoom 0.5