From 224194754f6e927e47c5926500d53815ada423d1 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Mon, 1 Apr 2024 22:52:01 +0200 Subject: [PATCH] Avoid using unnecessary screens --- game/scripts/events/labels.rpy | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/game/scripts/events/labels.rpy b/game/scripts/events/labels.rpy index b8d7654d..9db557a6 100644 --- a/game/scripts/events/labels.rpy +++ b/game/scripts/events/labels.rpy @@ -142,18 +142,24 @@ label teleport(position=None,effect=True,poof_label=None): with d1 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 #stop music fadeout 1 - hide screen heal_animation + hide heal_animation onlayer screens if poof_label is not None: 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 - hide screen teleport_animation + hide teleport_animation onlayer screens with d5 if effect == True: @@ -161,17 +167,9 @@ label teleport(position=None,effect=True,poof_label=None): 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. default hermione_action = None label set_her_action(action=None, update=None): $ hermione_action = action - return + return \ No newline at end of file