Avoid using unnecessary screens
This commit is contained in:
parent
e3c5fb609d
commit
224194754f
@ -142,18 +142,24 @@ label teleport(position=None,effect=True,poof_label=None):
|
|||||||
with d1
|
with d1
|
||||||
|
|
||||||
hide screen blkfade
|
hide screen blkfade
|
||||||
show screen heal_animation
|
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
|
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 == True:
|
if effect == True:
|
||||||
@ -161,14 +167,6 @@ label teleport(position=None,effect=True,poof_label=None):
|
|||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
screen teleport_animation():
|
|
||||||
add "teleport_ani" anchor (0.5, 0.7) xpos teleport_xpos ypos teleport_ypos zoom 0.5
|
|
||||||
zorder teleport_zorder
|
|
||||||
|
|
||||||
screen heal_animation():
|
|
||||||
add "heal_ani" anchor (0.5, 1.0) xpos teleport_xpos ypos teleport_ypos zoom 0.5
|
|
||||||
zorder teleport_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