How can I set a ConfirmationDialog to be immovable?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MaaaxiKing

I have a ConfirmationDialog and want the user not to be able to move it (by dragging it at the title bar).

:bust_in_silhouette: Reply From: njamster

Select your ConfirmationDialog in the scene-tree and set its mouse_filter-property in the inspector (under Control > Mouse > Mouse Filter) to “Ignore”.

Thank you very much. First I thought, it would also ignore the included buttons but I don’t know why I didn’t just tried that out.

MaaaxiKing | 2020-04-12 16:43

First I thought, it would also ignore the included buttons

It doesn’t, as the buttons are added as children of the ConfirmationDialog-node during runtime (you can see that by looking at the remote tree). However, I agree, it’s not very intuitive.

njamster | 2020-04-12 16:48