Gouvernathor
38a94e774b
turn the show into a call screen replace all return actions with specific local actions (WIP, more changes to come) make the global variables at least dynamic make the mode parameter a parameter of the label (so, a dynamic variable too, as a result) replace the bigger actions with local labels tweak text entries, comparisons, iterations... details
20 lines
442 B
Plaintext
20 lines
442 B
Plaintext
label gift_menu:
|
|
$ gui.in_context("inventory_menu", inventory_mode=1)
|
|
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):
|
|
add gift.get_image() align (0.5, 0.4) xysize (320, 320) fit "contain"
|
|
else:
|
|
add gift align (0.5, 0.4) xysize (320, 320) fit "contain"
|