Defer show

* Defer re-showing sprite until next statement call (less expensive and suits the writer better)
This commit is contained in:
LoafyLemon 2023-04-26 00:24:11 +01:00
parent 2ee9d0fb16
commit eec59a58e4
7 changed files with 0 additions and 14 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()