When does a window disappear in transitions?
- akakyouryuu
- Regular
- Posts: 153
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
When does a window disappear in transitions?
I searched renpy/display/core.py for the code which disappear a window in transitions.
I thought it was in Interface.interact(), but I couldn't find it.
Which code disappear a window in transitions?
I thought it was in Interface.interact(), but I couldn't find it.
Which code disappear a window in transitions?
- 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: When does a window disappear in transitions?
In modern Ren'Py, window disappearance is due to the say screen being shown with transient=True. When a screen is transient, it's removed at the end of the current interaction. (See, in renpy.display.core, the additional_transient list, the replace_transient method, and the transient flag to add().)
What are you trying to do?
What are you trying to do?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- akakyouryuu
- Regular
- Posts: 153
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: When does a window disappear in transitions?
I am thinking about showing a window during transitions without _window_during_transitions.
It doesn't support the nvl mode.
It doesn't support the nvl mode.
- 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: When does a window disappear in transitions?
Isn't window show the right way to do that, especially for nvl mode?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- akakyouryuu
- Regular
- Posts: 153
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: When does a window disappear in transitions?
I would like to allow a user to change whether showing window during transitions.
It seems important, expecially for like nvl mode.
It seems important, expecially for like nvl mode.
- 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: When does a window disappear in transitions?
Do you mean a player, or a creator?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- akakyouryuu
- Regular
- Posts: 153
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
- 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: When does a window disappear in transitions?
I'd suggest adding a new preference for this.
You'll want to check it in 3 places. The window is shown in _default_empty_window, which is in renpy/common/00library.rpy - just bail out of that function early if appropriate. You'll also want to check the preferences in execute_window_show and execute_window_hide, both in renpy/common/00statements.rpy, so that the window transition doesn't run if the preferences is false.
You'll want to check it in 3 places. The window is shown in _default_empty_window, which is in renpy/common/00library.rpy - just bail out of that function early if appropriate. You'll also want to check the preferences in execute_window_show and execute_window_hide, both in renpy/common/00statements.rpy, so that the window transition doesn't run if the preferences is false.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- akakyouryuu
- Regular
- Posts: 153
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Re: When does a window disappear in transitions?
I made this like below.
https://github.com/kyouryuukunn/renpy/c ... ing_trans3
I added window statements the window auto statement.
Showing the window is dependent on _preferences.during_trans If this is used.
If _preferences.during_trans is set to "window" and the window auto statement is used, the window is shown during transitions.
If _preferences.during_trans is set to "string" and the window auto statement is used, text is also shown during transitions.
If _preferences.during_trans is set to False and the window auto statement is used, it is the same that the window hide statement is used.
And the window is hidden automatically when the scene statement is used even if the window auto statement is used.
I'd like to pull request this. OK?
https://github.com/kyouryuukunn/renpy/c ... ing_trans3
I added window statements the window auto statement.
Showing the window is dependent on _preferences.during_trans If this is used.
If _preferences.during_trans is set to "window" and the window auto statement is used, the window is shown during transitions.
If _preferences.during_trans is set to "string" and the window auto statement is used, text is also shown during transitions.
If _preferences.during_trans is set to False and the window auto statement is used, it is the same that the window hide statement is used.
And the window is hidden automatically when the scene statement is used even if the window auto statement is used.
I'd like to pull request this. OK?
- 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: When does a window disappear in transitions?
Can you pull-request it, just because that makes it easier for me to look at it?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
- akakyouryuu
- Regular
- Posts: 153
- Joined: Fri Nov 30, 2012 10:29 am
- Contact:
Who is online
Users browsing this forum: No registered users