Default transition that doesn't transition the dialogue text (Solved)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Nrvx
Newbie
Posts: 1
Joined: Tue Dec 12, 2017 11:59 am
Contact:

Default transition that doesn't transition the dialogue text (Solved)

#1 Post by Nrvx »

Code: Select all

init python:  
    def default_show(*args, **kwargs):
        renpy.transition(Dissolve(0.2), layer='master', always=True)
        renpy.show(*args, **kwargs)
        return
    
    def default_hide(*args, **kwargs):
        renpy.transition(Dissolve(0.2), layer='master', always=True)
        renpy.hide(*args, **kwargs)
        return
        
    config.show = default_show
    config.hide = default_hide
I got this together while I was considering asking for help here and typing out a post, figured I'd dump it anyway in case I'm not an idiot missing something obvious and someone searches around. There is probably a better (read: one line, one definition) method, but it's doing it for me.

No side-effects so far, but I'm no doctor.

Cheers.

(That 'always=True' can probably be removed, though I'm scawed to fix unbroken things.)

Post Reply

Who is online

Users browsing this forum: WladekProd