+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?

asked Nov 28, 2016 in Engine by jslater89 (90 points)

AFAIK, no for now.

1 Answer

+5 votes
Best answer

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

answered Dec 1, 2016 by eska (1,038 points)
selected Dec 2, 2016 by jslater89

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 How to use this Q&A? before posting your first questions.