[Solved] Window not hiding when it should

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
User avatar
solarProtag
Newbie
Posts: 21
Joined: Sun May 28, 2017 12:17 am
Completed: http://solarprotag.weebly.com/games.html
Projects: Battle Live Series
Tumblr: solarasketchbook
itch: solarprotagonist
Contact:

[Solved] Window not hiding when it should

#1 Post by solarProtag » Sun Jun 10, 2018 12:25 am

The title is a good tl;dr of what my problem is: when the dialogue window should hide itself (like for when a transition is happening or when there isn't any dialogue being shown at all) it doesn't, and the only times I've seen it work is when it's either changing the scene with the scene function, or if I manually enter "window hide".

This is the only time I've run into this issue, as my past few games properly hid the dialogue window when it was supposed to. And everything's stayed the same as well, the config.window line of text in options.rpy is the default "auto", and the only thing I add is a little line of text right at the start of my game that says "window auto". I really don't want to have to go in and manually add the "window hide" statement when I've seen dozens of times in my previous projects where it worked properly.

Thanks in advance!
Last edited by solarProtag on Sun Jun 10, 2018 11:26 am, edited 1 time in total.

User avatar
Ocelot
Miko-Class Veteran
Posts: 849
Joined: Tue Aug 23, 2016 10:35 am
Skype: miinipaa
Contact:

Re: Window not hiding when it should

#2 Post by Ocelot » Sun Jun 10, 2018 3:21 am

when the dialogue window should hide itself (like for when a transition is happening or when there isn't any dialogue being shown at all) it doesn't
This is not default behavior. It looks like you want hide, not auto mode behavior.

window xxx statement does not hide or show anything. It sets mode for say window visibility. There are three modes total:

hidesay window is always hidden, unless say statement is executing.
So, say window will stay hidden until somebody starts talking and will hide as soon as you click past last line of dialogue.

showsay window is always shown, unless statement which explicitely hides that window is executing. By default it is only scene statement.
So, say window will be always shown except when scene statement is executing (and it will reappear as soon as scene changes).

auto — default mode, lazy approach: say window will be shown when it need to be shown, it will be hidden whin it needs to be hidden, and it will not be changed in all other cases.
So, say window will appear as soon as somebody says something and will not disappear until next scene or call screen statement. After that it will stay hidden until someone says something again.

Further info:
https://www.renpy.org/doc/html/config.h ... _auto_show
config.window_auto_show — which statements make say window appear in auto mode.

https://www.renpy.org/doc/html/config.h ... _auto_hide
config.window_auto_hide — which statements make say window disappear in auto mode.
< < insert Rick Cook quote here > >

User avatar
solarProtag
Newbie
Posts: 21
Joined: Sun May 28, 2017 12:17 am
Completed: http://solarprotag.weebly.com/games.html
Projects: Battle Live Series
Tumblr: solarasketchbook
itch: solarprotagonist
Contact:

Re: Window not hiding when it should

#3 Post by solarProtag » Sun Jun 10, 2018 11:26 am

Heyyyy it worked! Thanks so much!

I'm just confused how I got the auto function to work in my other games now lol.

Post Reply

Who is online

Users browsing this forum: Google [Bot], saturday