2022-05-16 23:48:22 +00:00
|
|
|
label gift_menu:
|
|
|
|
$ inventory_mode = 1
|
|
|
|
$ gui.in_context("inventory_menu")
|
|
|
|
$ inventory_mode = 0
|
|
|
|
return
|
|
|
|
|
|
|
|
label give_gift(text, gift):
|
|
|
|
show screen gift(gift)
|
|
|
|
with d3
|
|
|
|
"[text]"
|
|
|
|
hide screen gift
|
|
|
|
with d3
|
|
|
|
$ gift.owned -= 1
|
|
|
|
|
|
|
|
screen gift(gift):
|
|
|
|
zorder 30
|
|
|
|
|
|
|
|
if isinstance(gift, Item):
|
2023-11-16 16:22:23 +00:00
|
|
|
add gift.get_image() align (0.5, 0.4) xysize (320, 320) fit "contain"
|
2022-05-16 23:48:22 +00:00
|
|
|
else:
|
2023-11-16 16:22:23 +00:00
|
|
|
add gift align (0.5, 0.4) xysize (320, 320) fit "contain"
|