Compare commits
No commits in common. "acfb09516ce125451a3ba87c1fad2e3b4013c897" and "d7c8e39b08b41a28abd2a05b0b4d6870c3b230ff" have entirely different histories.
acfb09516c
...
d7c8e39b08
@ -28,24 +28,28 @@ label summon_menu(xx=723, yy=90):
|
|||||||
|
|
||||||
$ current_sorting = summon_show_busy
|
$ current_sorting = summon_show_busy
|
||||||
|
|
||||||
call screen summon(xx, yy)
|
label .after_init:
|
||||||
|
|
||||||
return
|
show screen summon(xx, yy)
|
||||||
|
|
||||||
label .summon(char):
|
$ renpy.dynamic(__choice = ui.interact())
|
||||||
|
|
||||||
|
if __choice[0] == "summon":
|
||||||
|
hide screen summon
|
||||||
|
if not __choice[2]:
|
||||||
$ enable_game_menu()
|
$ enable_game_menu()
|
||||||
$ renpy.jump_out_of_context("summon_"+char.lower())
|
$ renpy.jump_out_of_context("summon_"+__choice[1].lower())
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
label .summon_busy(char):
|
|
||||||
if game.daytime or char in ["Tonks", "Snape"]:
|
|
||||||
nar "[char] is currently busy. Try again later."
|
|
||||||
else:
|
else:
|
||||||
nar "[char] is currently asleep. Try again tomorrow."
|
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:
|
||||||
|
hide screen summon
|
||||||
return
|
return
|
||||||
|
|
||||||
|
jump .after_init
|
||||||
|
|
||||||
screen summon(xx, yy):
|
screen summon(xx, yy):
|
||||||
tag summon
|
tag summon
|
||||||
zorder 15
|
zorder 15
|
||||||
@ -58,18 +62,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
|
use summon_menu(xx, yy)
|
||||||
|
|
||||||
screen summon_menu():
|
screen summon_menu(xx, yy):
|
||||||
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()
|
||||||
@ -111,10 +115,10 @@ screen summon_menu():
|
|||||||
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 Call("summon_menu.summon", char, from_current=True)
|
action Return(["summon", char, False])
|
||||||
else:
|
else:
|
||||||
text_color "#8C8C70"
|
text_color "#8C8C70"
|
||||||
action Call("summon_menu.summon_busy", char, from_current=True)
|
action Return(["summon", char, 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