Feature request: disable dismiss of transitions

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
Tayruu
Regular
Posts: 139
Joined: Sat Jul 05, 2014 7:57 pm

Feature request: disable dismiss of transitions

#1 Post by Tayruu » Wed Aug 06, 2014 10:36 am

I want to disable the ability to skip through transitions or animations via the dismiss keys. However as far as I can tell, I can't do this unless Ren'py's core code is modified.

In core.py, there is the line sb = renpy.display.behavior.SayBehavior() within interact_core, which I believe controls if transitions and animations can be skipped over, regardless or not if the player's seen them. I'm not sure there's any way to append/alias this block, or the related code (the surrounding class or SayBehaviour).

All I need to do is turn it to sb = renpy.display.behavior.SayBehavior(dismiss=[]). A change functional for the end user would be more like dimiss=config.atl_lang_dismiss (whose default setting is ['dismiss'].) Or, I guess it would be. I can't change SayBehaviour itself -- even if I could, it affects dialogue, pauses, movie display, and probably other elements. I want to leave those alone.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Feature request: disable dismiss of transitions

#2 Post by PyTom » Wed Aug 06, 2014 8:00 pm

Why not just use renpy.transition followed by a call to renpy.pause with hard=True?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
Tayruu
Regular
Posts: 139
Joined: Sat Jul 05, 2014 7:57 pm

Re: Feature request: disable dismiss of transitions

#3 Post by Tayruu » Wed Aug 06, 2014 8:17 pm

That's something I've tried before, but it wasn't working as I expected it to...?

Oh, I see what was going on - in skip mode the hard pause would not be skipped if "unread", but the transition still would. Once the pause was "read", the unplaying transition was fine, because the pause was skipped and avoided making the behaviour visible.

EDIT: And the dimiss=[] edit makes it that the transition will not skip on dismiss, but will under skip, read or not. Which may or may not mean my issue is something entirely different to what I think. Oops.

EDIT: Addendum 2; it seems atl works well as an alternative for the thing where hard pause transitions will still skip the transition parts. Dunno how flexible atl blocks are though.

Post Reply

Who is online

Users browsing this forum: No registered users