How do you make a custom confirmation dialogue using PanelContainer node?

Godot Version

4.2.1

Question

There are various reasons why I would prefer to use a PanelContainer node over a ConfirmationDialogue. But the main reason is I will have more freedom to the design. Also how do you go about preventing the user from exiting the window via alt+F4 or exit button before showing the popup confirmation?

1 Like

I understand the desire to design the component. If it’s nothing too complex you could use a theme for that (setting all kinds of stuff like separation and margins apart from colors).

Isn’t Alt + F4 caught by the OS. Seems hard to be intercepted. I don’t understand why you would do that, can you provide more context?