- Nov 21, 2017
- 155
- 1,120
I'm looking for a way to stop side images from transitioning (dissolving), when using code like this:
For context, show_text_during_trans is a fix for disappearing dialogue.
renpy/display/core.py
I would think, that since I'm already disabling transitions for the say screen (where the side image is added), this is enough, but no. I'm still getting the "fade out" effect on the old side image. The new side image appears without transition, as it should.
Code:
scene bg_home_entrance
$ nan.sprite("normal", center)
with dissolve
$ show_text_during_trans = True
nan.u "Hello. May I help you?"
mc.n "Yeah, my name is Ryota. I rented a room in this house."
$ nan.sprite("shock", center)
with dissolve
nan.u "Eh? You're Ryota-san?" <= this is where the side image transition happens
renpy/display/core.py
Code:
def show_window(self):
if not renpy.store._window:
return
if not renpy.game.preferences.show_empty_window:
return
########## MOD (Keep text during transitions)
if getattr(renpy.store, "show_text_during_trans", False):
return
########## MOD
if renpy.game.context().scene_lists.shown_window:
return
###
finally:
renpy.game.context().deferred_translate_identifier = None
self.force_prediction = False
context.interacting = False
# Clean out transient stuff at the end of an interaction.
if clear:
scene_lists = renpy.game.context().scene_lists
########## MOD (Keep text during transitions)
if getattr(renpy.store, "show_text_during_trans", False):
if ("screens", "say") in scene_lists.additional_transient:
scene_lists.additional_transient.remove(("screens", "say"))
if ("screens", "nvl") in scene_lists.additional_transient:
scene_lists.additional_transient.remove(("screens", "nvl"))
########## MOD
scene_lists.replace_transient()
self.end_transitions()
self.restart_interaction = True