2024-04-15 18:06:18 +00:00
|
|
|
default main_room = Room("main_room", "main_room_menu")
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
default fireplace_OBJ = RoomObject(main_room, "fireplace", pos=(693, 277), idle="fireplace_idle_shadow", focus_mask="fireplace_hover", foreground=None, action=Jump("fireplace"), tooltip="Light/Extinguish")
|
2024-04-18 15:57:31 +00:00
|
|
|
default cupboard_OBJ = RoomObject(
|
|
|
|
main_room,
|
|
|
|
"cupboard",
|
|
|
|
pos=(260, 280),
|
|
|
|
idle="cupboard_idle",
|
|
|
|
action={
|
2024-09-24 18:59:59 +00:00
|
|
|
"Open Inventory": (Text("🎒", align=(0.5, 0.5)), Jump("inventory")),
|
|
|
|
"Rummage": (Text("🖐️", align=(0.5, 0.5)), Jump("cupboard")),
|
|
|
|
"Calendar": (Text("📆", align=(0.5, 0.5)), Jump("calendar")),
|
2024-04-18 15:57:31 +00:00
|
|
|
},
|
|
|
|
tooltip="Cupboard"
|
|
|
|
)
|
2024-04-15 18:06:18 +00:00
|
|
|
default phoenix_OBJ = RoomObject(
|
|
|
|
main_room, "phoenix",
|
|
|
|
pos=(557, 272),
|
|
|
|
idle="phoenix_idle",
|
|
|
|
hover="phoenix_hover",
|
|
|
|
focus_mask="phoenix_idle",
|
|
|
|
background="phoenix_feather",
|
|
|
|
action={
|
2024-09-24 18:59:59 +00:00
|
|
|
"Feed": (Text("🍔", align=(0.5, 0.5)), Jump("phoenix_feed")),
|
|
|
|
"Pet": (Text("🖐️", align=(0.5, 0.5)), Jump("phoenix_pet"))
|
2024-04-15 18:06:18 +00:00
|
|
|
},
|
|
|
|
tooltip="Phoenix"
|
|
|
|
)
|
2024-04-18 15:57:31 +00:00
|
|
|
default door_OBJ = RoomObject(
|
|
|
|
main_room,
|
|
|
|
"door",
|
|
|
|
pos=(898, 315),
|
|
|
|
idle="door_idle",
|
|
|
|
focus_mask="door_hover",
|
|
|
|
action={
|
2024-09-24 18:59:59 +00:00
|
|
|
"Summon Snape": (Transform("wheelmenu_snape", align=(0.5, 0.5), xysize=(32, 32)), IfExpr("states.sna.busy", None, Jump("summon_snape")), "states.sna.unlocked", "states.sna.busy"),
|
|
|
|
"Summon Tonks": (Transform("wheelmenu_tonks", align=(0.5, 0.5), xysize=(32, 32)), IfExpr("states.ton.busy", None, Jump("summon_tonks")), "states.ton.unlocked", "states.ton.busy"),
|
|
|
|
"Summon Hermione": (Transform("wheelmenu_hermione", align=(0.5, 0.5), xysize=(32, 32)), IfExpr("states.her.busy", None, Jump("summon_hermione")), "states.her.unlocked", "states.her.busy"),
|
|
|
|
"Summon Cho": (Transform("wheelmenu_cho", align=(0.5, 0.5), xysize=(32, 32)), IfExpr("states.cho.busy", None, Jump("summon_cho")), "states.cho.unlocked", "states.cho.busy"),
|
|
|
|
"Summon Luna": (Transform("wheelmenu_luna", align=(0.5, 0.5), xysize=(32, 32)), IfExpr("states.lun.busy", None, Jump("summon_luna")), "states.lun.unlocked", "states.lun.busy"),
|
|
|
|
"Summon Astoria": (Transform("wheelmenu_astoria", align=(0.5, 0.5), xysize=(32, 32)), IfExpr("states.ast.busy", None, Jump("summon_astoria")), "states.ast.unlocked", "states.ast.busy"),
|
|
|
|
"Summon Susan": (Transform("wheelmenu_susan", align=(0.5, 0.5), xysize=(32, 32)), IfExpr("states.sus.busy", None, Jump("summon_susan")), "states.sus.unlocked", "states.sus.busy"),
|
|
|
|
"Exit": (Text("🚪", align=(0.5, 0.5)), IfExpr("states.map.unlocked", Jump("map"), Jump("door"))),
|
2024-04-18 15:57:31 +00:00
|
|
|
},
|
|
|
|
tooltip="Door"
|
|
|
|
)
|
2022-05-16 23:48:22 +00:00
|
|
|
default candleL_OBJ = RoomObject(main_room, "candle_left", pos=(350, 160), idle="candle_left", foreground=None, action=ToggleVariable("candleL_OBJ.foreground", "candle_fire", None), zorder=3)
|
|
|
|
default candleR_OBJ = RoomObject(main_room, "candle_right", pos=(833, 225), idle="candle_right", foreground=None, action=ToggleVariable("candleR_OBJ.foreground", "candle_fire", None), zorder=3)
|
2024-04-15 18:06:18 +00:00
|
|
|
default desk_OBJ = RoomObject(
|
2024-04-26 23:41:38 +00:00
|
|
|
main_room,
|
|
|
|
"desk",
|
2024-04-15 18:06:18 +00:00
|
|
|
pos=(370, 336),
|
|
|
|
idle="ch_gen sit_behind_desk",
|
|
|
|
hover="ch_gen sit_behind_desk_hover",
|
|
|
|
focus_mask="ch_gen sit_behind_desk",
|
|
|
|
action={
|
2024-09-24 18:59:59 +00:00
|
|
|
"Sleep": (Text("💤", align=(0.5, 0.5)), IfExpr("states.env.daytime", Jump("night_start"), Jump("day_start"))),
|
|
|
|
"Jerk Off": (Text("🍆", align=(0.5, 0.5)), Jump("jerk_off")),
|
2024-04-22 19:26:12 +00:00
|
|
|
"Do Paperwork": (Text("📝", align=(0.5, 0.5)), Jump("paperwork"), "states.paperwork_unlocked"),
|
2024-04-17 18:23:53 +00:00
|
|
|
"Open Deck Builder": (Text("🃏", align=(0.5, 0.5)), Jump("deck_builder"), "states.cardgame.unlocked"),
|
2024-04-25 19:11:30 +00:00
|
|
|
"Open Cheats Menu": (Text("🕹️", align=(0.5, 0.5)), Jump("cheats"), "states.env.cheats"),
|
2024-09-24 18:59:59 +00:00
|
|
|
"Open Achievements Menu": (Text("⭐", align=(0.5, 0.5)), Jump("achievements")),
|
2024-04-15 18:06:18 +00:00
|
|
|
},
|
|
|
|
hovered=Show(
|
|
|
|
"gui_tooltip",
|
|
|
|
img="emo_exclaim",
|
|
|
|
xx=335,
|
|
|
|
yy=210
|
|
|
|
),
|
|
|
|
unhovered=Hide("gui_tooltip"),
|
|
|
|
tooltip="Desk",
|
|
|
|
zorder=1
|
|
|
|
)
|
2022-05-16 23:48:22 +00:00
|
|
|
default poster_OBJ = RoomObject(main_room, "poster", pos=(364, 285), idle=Null(127, 166), action=Jump("enlarge_poster"), zorder=-1)
|
|
|
|
default trophy_OBJ = RoomObject(main_room, "trophy", pos=(650, 120), idle=Null(), action=None, zorder=-1)
|
|
|
|
default chair_OBJ = RoomObject(main_room, "chair", pos=(793, 300), idle="chair_right", action=None, zorder=0)
|
|
|
|
default chair_left_OBJ = RoomObject(main_room, "chair", pos=(333, 300), idle="chair_left", action=None, zorder=0, hidden=True)
|
|
|
|
|
2024-05-03 17:12:53 +00:00
|
|
|
default owl_OBJ = RoomObject(main_room, "owl", pos=(455, 289), idle="owl_letter", hover="owl_letter_hover", action=Jump("letter_open_all"), tooltip=_("Check Mail"), hidden=True, anchor=(0.5, 1.0))
|
|
|
|
default parcel_OBJ = RoomObject(main_room, "parcel", pos=(402, 290), idle="parcel", action=Jump("parcel_open_all"), tooltip=_("Check Parcel"), hidden=True, anchor=(0.5, 1.0))
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
default rug_OBJ = RoomObject(main_room, "rug", pos=(482, 392), idle=Null(), action=None, zorder=0)
|
|
|
|
default chandelier_OBJ = RoomObject(main_room, "chandelier", pos=(536, 24), idle=Null(), action=None, zorder=5)
|
|
|
|
default window_OBJ = RoomObject(main_room, "window", pos=(459, 192), idle=Null(), action=None, zorder=0)
|
2024-04-26 14:35:05 +00:00
|
|
|
default safe_OBJ = RoomObject(main_room, "safe", pos=(73, 324), idle=Text("Safe", color="#fff"), action=Jump("inventory"), zorder=0)
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
screen main_room():
|
|
|
|
tag room
|
|
|
|
zorder 0
|
|
|
|
sensitive room_menu_active
|
|
|
|
|
|
|
|
default objects = sorted(main_room.objects, key=lambda x: x.zorder)
|
|
|
|
|
|
|
|
# Hotkeys
|
2024-04-25 19:14:25 +00:00
|
|
|
if room_menu_active and states.env.day > 1 and not renpy.android:
|
2022-05-16 23:48:22 +00:00
|
|
|
use hotkeys_main
|
|
|
|
|
2024-04-25 19:15:36 +00:00
|
|
|
add "weather [states.env.weather]" xycenter (430, 218)
|
2022-05-16 23:48:22 +00:00
|
|
|
|
|
|
|
# Walls
|
2024-04-25 18:49:09 +00:00
|
|
|
if states.env.daytime:
|
2022-05-16 23:48:22 +00:00
|
|
|
add "main_room_idle_day"
|
|
|
|
else:
|
|
|
|
add "main_room_idle_night"
|
|
|
|
|
|
|
|
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.get_action()
|
|
|
|
|
|
|
|
label main_room:
|
|
|
|
call room("main_room", stop_sound=False)
|
|
|
|
call gen_walk(action="enter", xpos="desk", ypos="base", speed=1.5)
|
|
|
|
call gen_chibi("sit_behind_desk")
|
|
|
|
with d3
|
|
|
|
|
2024-04-25 18:49:09 +00:00
|
|
|
if states.env.daytime:
|
2022-05-16 23:48:22 +00:00
|
|
|
jump day_resume
|
|
|
|
else:
|
|
|
|
jump night_resume
|
|
|
|
|
|
|
|
# Return to main_room at menu point (after quests and events)
|
|
|
|
# Used to return from main room interactions
|
|
|
|
label main_room_menu:
|
|
|
|
hide screen bld1
|
|
|
|
with d3
|
|
|
|
|
2024-04-25 18:49:09 +00:00
|
|
|
if states.env.daytime:
|
2022-05-16 23:48:22 +00:00
|
|
|
jump day_resume
|
|
|
|
else:
|
2024-09-12 15:16:41 +00:00
|
|
|
jump night_resume
|