2022-05-16 23:48:22 +00:00
|
|
|
# Quidditch stands
|
|
|
|
|
2023-11-15 02:13:55 +00:00
|
|
|
define __quidditch_stands2 = {
|
2022-05-16 23:48:22 +00:00
|
|
|
"weather": "sun_high",
|
2023-11-15 02:12:24 +00:00
|
|
|
"crowd": (),
|
|
|
|
"crowd_react": (None, None, None),
|
2022-05-16 23:48:22 +00:00
|
|
|
}
|
2023-11-15 02:13:55 +00:00
|
|
|
default quidditch_stands2 = __quidditch_stands2.copy()
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
label quidditch_stands2(hidden=False, reset=False, **kwargs):
|
|
|
|
if reset:
|
2023-11-15 02:13:55 +00:00
|
|
|
$ quidditch_stands2 = __quidditch_stands2 | kwargs
|
|
|
|
else:
|
|
|
|
$ quidditch_stands2.update(kwargs)
|
2022-05-16 23:48:22 +00:00
|
|
|
if not hidden:
|
|
|
|
show screen quidditch_stands_back2(**quidditch_stands2)
|
|
|
|
show screen quidditch_stands_front2(**quidditch_stands2)
|
|
|
|
return
|
|
|
|
|
2023-11-15 02:12:24 +00:00
|
|
|
screen quidditch_stands_back2(weather, crowd=(), crowd_react=(None, None, None), **kwargs):
|
2022-05-16 23:48:22 +00:00
|
|
|
zorder 0
|
|
|
|
|
|
|
|
add "images/rooms/quidditch_stands2/bg_{}.webp".format(weather) zoom 0.5
|
|
|
|
|
2023-11-15 02:12:24 +00:00
|
|
|
for c in crowd:
|
2022-05-16 23:48:22 +00:00
|
|
|
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
|