How can I keep non-exclusive windowdialogs open when clicking outside of them?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By jslater89
:warning: Old Version Published before Godot 3 was released.

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?

AFAIK, no for now.

volzhs | 2016-11-28 21:38

Wanted to add you can set the Exclusive property of the popup window to stop it closing automatically.

kitfox | 2023-02-03 09:01

:bust_in_silhouette: Reply From: eska

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

OMG, just like that simple? :slight_smile: didn’t know that…

volzhs | 2016-12-01 20:39

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

Shishir Tandale | 2020-06-14 15:11