0 votes

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

in Engine by (378 points)

1 Answer

+1 vote
Best answer

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

by (10,281 points)
selected by

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.

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.

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.
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.