Defer show
* Defer re-showing sprite until next statement call (less expensive and suits the writer better)
This commit is contained in:
parent
2ee9d0fb16
commit
eec59a58e4
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user