2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
default snape_office = Room("snape_office")
|
|
|
|
|
2024-05-03 17:12:53 +00:00
|
|
|
default snape_office_brewing_station_OBJ = RoomObject(snape_office, "snape_office_brewing_station", pos=(367, 325), idle="snape_office_brewing_station_off", focus_mask=None, action=Jump("brewing_station"), tooltip=_("Brewing Station"), zorder=-1)
|
|
|
|
default snape_office_shelves_OBJ = RoomObject(snape_office, "snape_office_shelves", pos=(695, 240), idle="snape_office_shelves", foreground="snape_office_shelves_anim", focus_mask=None, action=Jump("shelves"), tooltip=_("Shelves"), zorder=-1)
|
|
|
|
default snape_office_picture_OBJ = RoomObject(snape_office, "snape_office_picture", pos=(879, 219), idle="snape_office_picture", action=Jump("snape_picture"), tooltip=_("Picture"), zorder=-1)
|
|
|
|
default snape_office_statue_OBJ = RoomObject(snape_office, "snape_office_statue", pos=(541, 137), idle="snape_office_statue", action=Jump("snake_statue"), tooltip=_("Snake Head"), zorder=-1)
|
|
|
|
default snape_office_desk_OBJ = RoomObject(snape_office, "snape_office_desk", pos=(737, 369), idle="snape_office_desk", action=Jump("snape_at_desk"), tooltip=_("Snape's Desk"), zorder=0)
|
|
|
|
default snape_office_candelabra_OBJ = RoomObject(snape_office, "snape_office_candelabra", pos=(540, 300), idle="snape_office_candelabra_on", foreground="snape_office_candelabra_anim", focus_mask=None, action=Jump("candelabra"), tooltip=_("Examine"), zorder=0)
|
|
|
|
default snape_office_door_OBJ = RoomObject(snape_office, "snape_office_door", pos=(185, 307), idle="snape_office_door", action=Jump("snape_office_door"), tooltip=_("Return to office"), zorder=0)
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
screen snape_office():
|
|
|
|
tag room
|
|
|
|
zorder 0
|
|
|
|
sensitive room_menu_active
|
|
|
|
|
|
|
|
default objects = sorted(snape_office.objects, key=lambda x: x.zorder)
|
|
|
|
|
2024-04-22 19:26:12 +00:00
|
|
|
if room_menu_active:
|
|
|
|
use hotkeys_main
|
|
|
|
|
2022-05-16 23:48:22 +00:00
|
|
|
add "images/rooms/snape_office/bg.webp" zoom 0.5
|
|
|
|
|
|
|
|
for obj in objects:
|
|
|
|
imagebutton:
|
|
|
|
anchor obj.get_anchor()
|
|
|
|
pos obj.get_pos()
|
|
|
|
idle obj.get_idle()
|
|
|
|
hover obj.get_hover()
|
2024-04-22 19:26:12 +00:00
|
|
|
foreground obj.get_foreground()
|
2022-05-16 23:48:22 +00:00
|
|
|
background obj.background
|
|
|
|
focus_mask obj.focus_mask
|
|
|
|
tooltip obj.tooltip
|
|
|
|
hovered obj.hovered
|
|
|
|
unhovered obj.unhovered
|
|
|
|
action obj.action
|
|
|
|
|
|
|
|
add "images/rooms/snape_office/vignette.webp" zoom 0.5
|
|
|
|
|
|
|
|
label snape_office:
|
|
|
|
call room("snape_office")
|
2023-03-16 22:55:14 +00:00
|
|
|
play music "music/the-other-side-of-the-door-by-kevin-macleod-from-filmmusic-io.ogg" fadein 1 if_changed
|
2022-05-16 23:48:22 +00:00
|
|
|
|
2024-04-25 18:49:09 +00:00
|
|
|
if states.env.daytime:
|
2022-05-16 23:48:22 +00:00
|
|
|
$ snape_office_desk_OBJ.set_image("snape_office_desk")
|
|
|
|
$ snape_office_brewing_station_OBJ.set_image("snape_office_brewing_station_off")
|
|
|
|
$ snape_office_brewing_station_OBJ.foreground = None
|
|
|
|
else:
|
|
|
|
$ snape_office_desk_OBJ.set_image("snape_desk_work")
|
|
|
|
$ snape_office_brewing_station_OBJ.set_image("snape_office_brewing_station_on")
|
|
|
|
$ snape_office_brewing_station_OBJ.foreground = "snape_office_brewing_station_anim"
|
|
|
|
|
|
|
|
call gen_walk(action="enter", xpos="door", ypos="base", speed=1.5, flip=True)
|
|
|
|
|
|
|
|
jump quests
|
|
|
|
|
|
|
|
label snape_office_menu:
|
|
|
|
hide screen bld1
|
|
|
|
with d3
|
|
|
|
|
|
|
|
call screen room_menu
|