forked from SilverStudioGames/WTS
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:
|
if what:
|
||||||
character.astoria_say(what, **kwargs)
|
character.astoria_say(what, **kwargs)
|
||||||
|
|
||||||
# Reshow sprite if any changes have been made
|
|
||||||
if temp_face:
|
if temp_face:
|
||||||
astoria.set_face(**last_face)
|
astoria.set_face(**last_face)
|
||||||
show()
|
|
||||||
|
|
||||||
if head_only:
|
if head_only:
|
||||||
astoria.hide()
|
astoria.hide()
|
||||||
|
@ -83,10 +83,8 @@ init python in character:
|
|||||||
if what:
|
if what:
|
||||||
cho_say(what, **kwargs)
|
cho_say(what, **kwargs)
|
||||||
|
|
||||||
# Reshow sprite if any changes have been made
|
|
||||||
if temp_face:
|
if temp_face:
|
||||||
renpy.store.cho.set_face(**last_face)
|
renpy.store.cho.set_face(**last_face)
|
||||||
show()
|
|
||||||
|
|
||||||
if head_only:
|
if head_only:
|
||||||
renpy.store.cho.hide()
|
renpy.store.cho.hide()
|
||||||
|
@ -78,10 +78,8 @@ init python:
|
|||||||
if what:
|
if what:
|
||||||
character.hermione_say(what, **kwargs)
|
character.hermione_say(what, **kwargs)
|
||||||
|
|
||||||
# Reshow sprite if any changes have been made
|
|
||||||
if temp_face:
|
if temp_face:
|
||||||
hermione.set_face(**last_face)
|
hermione.set_face(**last_face)
|
||||||
show()
|
|
||||||
|
|
||||||
if head_only:
|
if head_only:
|
||||||
hermione.hide()
|
hermione.hide()
|
||||||
|
@ -69,10 +69,8 @@ init python:
|
|||||||
if what:
|
if what:
|
||||||
character.hooch_say(what, **kwargs)
|
character.hooch_say(what, **kwargs)
|
||||||
|
|
||||||
# Reshow sprite if any changes have been made
|
|
||||||
if temp_face:
|
if temp_face:
|
||||||
hooch.set_face(**last_face)
|
hooch.set_face(**last_face)
|
||||||
show()
|
|
||||||
|
|
||||||
if head_only:
|
if head_only:
|
||||||
hooch.hide()
|
hooch.hide()
|
||||||
|
@ -80,10 +80,8 @@ init python:
|
|||||||
if what:
|
if what:
|
||||||
character.luna_say(what, **kwargs)
|
character.luna_say(what, **kwargs)
|
||||||
|
|
||||||
# Reshow sprite if any changes have been made
|
|
||||||
if temp_face:
|
if temp_face:
|
||||||
luna.set_face(**last_face)
|
luna.set_face(**last_face)
|
||||||
show()
|
|
||||||
|
|
||||||
if head_only:
|
if head_only:
|
||||||
luna.hide()
|
luna.hide()
|
||||||
|
@ -79,10 +79,8 @@ init python:
|
|||||||
if what:
|
if what:
|
||||||
character.susan_say(what, **kwargs)
|
character.susan_say(what, **kwargs)
|
||||||
|
|
||||||
# Reshow sprite if any changes have been made
|
|
||||||
if temp_face:
|
if temp_face:
|
||||||
susan.set_face(**last_face)
|
susan.set_face(**last_face)
|
||||||
show()
|
|
||||||
|
|
||||||
if head_only:
|
if head_only:
|
||||||
susan.hide()
|
susan.hide()
|
||||||
|
@ -101,10 +101,8 @@ init python:
|
|||||||
if what:
|
if what:
|
||||||
character.tonks_say(what, **kwargs)
|
character.tonks_say(what, **kwargs)
|
||||||
|
|
||||||
# Reshow sprite if any changes have been made
|
|
||||||
if temp_face:
|
if temp_face:
|
||||||
tonks.set_face(**last_face)
|
tonks.set_face(**last_face)
|
||||||
show()
|
|
||||||
|
|
||||||
if head_only:
|
if head_only:
|
||||||
tonks.hide()
|
tonks.hide()
|
||||||
|
Loading…
Reference in New Issue
Block a user