+4 votes

I have some WindowDialogs I want players to be able to leave open while they do other things which require input outside the dialog. I can't seem to find a property on the WindowDialog that forces it to stay open in such a case. Does such a thing exist?

in Engine by (97 points)

AFAIK, no for now.

1 Answer

+7 votes
Best answer

Call show() instead of popup() to display the WindowDialog non-modally (i.e. without having it close on focus exit).

by (1,086 points)
selected by

OMG, just like that simple? :) didn't know that...

I wanted to add to this since I've been banging my head on a related problem.

If you are using show instead of popup, you can use set_position and set_size prior to showing to position the window properly.

When you hide the window, instead of reacting to the hide_popup signal, you have to react to hide instead.

This works with exclusive dialogs as well. Cheers

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.