Compare commits
3 Commits
d7c8e39b08
...
acfb09516c
Author | SHA1 | Date | |
---|---|---|---|
acfb09516c | |||
1672b2381a | |||
e242c0e43a |
@ -28,27 +28,23 @@ label summon_menu(xx=723, yy=90):
|
|||||||
|
|
||||||
$ current_sorting = summon_show_busy
|
$ current_sorting = summon_show_busy
|
||||||
|
|
||||||
label .after_init:
|
call screen summon(xx, yy)
|
||||||
|
|
||||||
show screen summon(xx, yy)
|
return
|
||||||
|
|
||||||
$ renpy.dynamic(__choice = ui.interact())
|
label .summon(char):
|
||||||
|
$ enable_game_menu()
|
||||||
|
$ renpy.jump_out_of_context("summon_"+char.lower())
|
||||||
|
|
||||||
if __choice[0] == "summon":
|
return
|
||||||
hide screen summon
|
|
||||||
if not __choice[2]:
|
label .summon_busy(char):
|
||||||
$ enable_game_menu()
|
if game.daytime or char in ["Tonks", "Snape"]:
|
||||||
$ renpy.jump_out_of_context("summon_"+__choice[1].lower())
|
nar "[char] is currently busy. Try again later."
|
||||||
else:
|
|
||||||
if game.daytime or __choice[1] in ["Tonks", "Snape"]:
|
|
||||||
nar "[__choice[1]] is currently busy. Try again later."
|
|
||||||
else:
|
|
||||||
nar "[__choice[1]] is currently asleep. Try again tomorrow."
|
|
||||||
else:
|
else:
|
||||||
hide screen summon
|
nar "[char] is currently asleep. Try again tomorrow."
|
||||||
return
|
|
||||||
|
|
||||||
jump .after_init
|
return
|
||||||
|
|
||||||
screen summon(xx, yy):
|
screen summon(xx, yy):
|
||||||
tag summon
|
tag summon
|
||||||
@ -62,18 +58,18 @@ screen summon(xx, yy):
|
|||||||
use close_button(key=["summon", "game_menu"])
|
use close_button(key=["summon", "game_menu"])
|
||||||
|
|
||||||
fixed:
|
fixed:
|
||||||
|
pos (xx, yy)
|
||||||
if settings.get("animations"):
|
if settings.get("animations"):
|
||||||
at gui_animation
|
at gui_animation
|
||||||
use summon_menu(xx, yy)
|
use summon_menu
|
||||||
|
|
||||||
screen summon_menu(xx, yy):
|
screen summon_menu():
|
||||||
tag summon_menu
|
tag summon_menu
|
||||||
modal True
|
modal True
|
||||||
zorder 15
|
zorder 15
|
||||||
|
|
||||||
window:
|
window:
|
||||||
style "empty"
|
style "empty"
|
||||||
pos (xx, yy)
|
|
||||||
xysize (207, 454)
|
xysize (207, 454)
|
||||||
|
|
||||||
use invisible_button()
|
use invisible_button()
|
||||||
@ -115,10 +111,10 @@ screen summon_menu(xx, yy):
|
|||||||
text_xanchor 0.5
|
text_xanchor 0.5
|
||||||
text_size 20
|
text_size 20
|
||||||
if not summon_dict[char]["busy"]:
|
if not summon_dict[char]["busy"]:
|
||||||
action Return(["summon", char, False])
|
action Call("summon_menu.summon", char, from_current=True)
|
||||||
else:
|
else:
|
||||||
text_color "#8C8C70"
|
text_color "#8C8C70"
|
||||||
action Return(["summon", char, True])
|
action Call("summon_menu.summon_busy", char, from_current=True)
|
||||||
|
|
||||||
add gui.format("interface/achievements/{}/spacer_left.webp")
|
add gui.format("interface/achievements/{}/spacer_left.webp")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user