Avoid using unnecessary screens
This commit is contained in:
parent
5c7bbfcc85
commit
56d6abea1a
@ -141,18 +141,24 @@ label teleport(position_=None, effect=True, poof_label=None):
|
|||||||
with d1
|
with d1
|
||||||
|
|
||||||
hide screen blkfade
|
hide screen blkfade
|
||||||
show screen heal_animation(teleport_pos, teleport_zorder)
|
show heal_ani onlayer screens zorder teleport_zorder:
|
||||||
|
anchor (0.5, 1.0)
|
||||||
|
pos teleport_pos
|
||||||
|
zoom 0.5
|
||||||
with d3
|
with d3
|
||||||
|
|
||||||
#stop music fadeout 1
|
#stop music fadeout 1
|
||||||
|
|
||||||
hide screen heal_animation
|
hide heal_animation onlayer screens
|
||||||
if poof_label is not None:
|
if poof_label is not None:
|
||||||
call expression poof_label
|
call expression poof_label
|
||||||
show screen teleport_animation(teleport_pos, teleport_zorder)
|
show teleport_ani onlayer screens zorder teleport_zorder:
|
||||||
|
anchor (0.5, 0.7)
|
||||||
|
pos teleport_pos
|
||||||
|
zoom 0.5
|
||||||
with d5
|
with d5
|
||||||
|
|
||||||
hide screen teleport_animation
|
hide teleport_animation onlayer screens
|
||||||
with d5
|
with d5
|
||||||
|
|
||||||
if effect:
|
if effect:
|
||||||
@ -160,14 +166,6 @@ label teleport(position_=None, effect=True, poof_label=None):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
screen teleport_animation(pos, zorder):
|
|
||||||
add "teleport_ani" anchor (0.5, 0.7) pos pos zoom 0.5
|
|
||||||
zorder zorder
|
|
||||||
|
|
||||||
screen heal_animation(pos, zorder):
|
|
||||||
add "heal_ani" anchor (0.5, 1.0) pos pos zoom 0.5
|
|
||||||
zorder zorder
|
|
||||||
|
|
||||||
# Dummy labels. To prevent crashes. # TODO: Remove later.
|
# Dummy labels. To prevent crashes. # TODO: Remove later.
|
||||||
default hermione_action = None
|
default hermione_action = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user