Page 1 of 1

[Solved] Window not hiding when it should

Posted: Sun Jun 10, 2018 12:25 am
by solarProtag
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!

Re: Window not hiding when it should

Posted: Sun Jun 10, 2018 3:21 am
by Ocelot
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.

Re: Window not hiding when it should

Posted: Sun Jun 10, 2018 11:26 am
by solarProtag
Heyyyy it worked! Thanks so much!

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