From eec59a58e4d0eb0faf91448293a9edbec0256f96 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Wed, 26 Apr 2023 00:24:11 +0100 Subject: [PATCH] Defer show * Defer re-showing sprite until next statement call (less expensive and suits the writer better) --- game/scripts/characters/astoria/common.rpy | 2 -- game/scripts/characters/cho/common.rpy | 2 -- game/scripts/characters/hermione/common.rpy | 2 -- game/scripts/characters/hooch/common.rpy | 2 -- game/scripts/characters/luna/common.rpy | 2 -- game/scripts/characters/susan/common.rpy | 2 -- game/scripts/characters/tonks/common.rpy | 2 -- 7 files changed, 14 deletions(-) diff --git a/game/scripts/characters/astoria/common.rpy b/game/scripts/characters/astoria/common.rpy index 6e575ae8..fe539e2a 100644 --- a/game/scripts/characters/astoria/common.rpy +++ b/game/scripts/characters/astoria/common.rpy @@ -84,10 +84,8 @@ init python: if what: character.astoria_say(what, **kwargs) - # Reshow sprite if any changes have been made if temp_face: astoria.set_face(**last_face) - show() if head_only: astoria.hide() diff --git a/game/scripts/characters/cho/common.rpy b/game/scripts/characters/cho/common.rpy index 14ab9efd..694db3cb 100644 --- a/game/scripts/characters/cho/common.rpy +++ b/game/scripts/characters/cho/common.rpy @@ -83,10 +83,8 @@ init python in character: if what: cho_say(what, **kwargs) - # Reshow sprite if any changes have been made if temp_face: renpy.store.cho.set_face(**last_face) - show() if head_only: renpy.store.cho.hide() diff --git a/game/scripts/characters/hermione/common.rpy b/game/scripts/characters/hermione/common.rpy index d99269d9..19f217f8 100644 --- a/game/scripts/characters/hermione/common.rpy +++ b/game/scripts/characters/hermione/common.rpy @@ -78,10 +78,8 @@ init python: if what: character.hermione_say(what, **kwargs) - # Reshow sprite if any changes have been made if temp_face: hermione.set_face(**last_face) - show() if head_only: hermione.hide() diff --git a/game/scripts/characters/hooch/common.rpy b/game/scripts/characters/hooch/common.rpy index aac75a1a..e1e724ad 100644 --- a/game/scripts/characters/hooch/common.rpy +++ b/game/scripts/characters/hooch/common.rpy @@ -69,10 +69,8 @@ init python: if what: character.hooch_say(what, **kwargs) - # Reshow sprite if any changes have been made if temp_face: hooch.set_face(**last_face) - show() if head_only: hooch.hide() diff --git a/game/scripts/characters/luna/common.rpy b/game/scripts/characters/luna/common.rpy index fae969cc..6b2eb62a 100644 --- a/game/scripts/characters/luna/common.rpy +++ b/game/scripts/characters/luna/common.rpy @@ -80,10 +80,8 @@ init python: if what: character.luna_say(what, **kwargs) - # Reshow sprite if any changes have been made if temp_face: luna.set_face(**last_face) - show() if head_only: luna.hide() diff --git a/game/scripts/characters/susan/common.rpy b/game/scripts/characters/susan/common.rpy index b0d8c3dd..6b01a4c1 100644 --- a/game/scripts/characters/susan/common.rpy +++ b/game/scripts/characters/susan/common.rpy @@ -79,10 +79,8 @@ init python: if what: character.susan_say(what, **kwargs) - # Reshow sprite if any changes have been made if temp_face: susan.set_face(**last_face) - show() if head_only: susan.hide() diff --git a/game/scripts/characters/tonks/common.rpy b/game/scripts/characters/tonks/common.rpy index 83f3d8b0..10f44f41 100644 --- a/game/scripts/characters/tonks/common.rpy +++ b/game/scripts/characters/tonks/common.rpy @@ -101,10 +101,8 @@ init python: if what: character.tonks_say(what, **kwargs) - # Reshow sprite if any changes have been made if temp_face: tonks.set_face(**last_face) - show() if head_only: tonks.hide()