What is the difference between PopupPanel and PopupDialog

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


These appear to have the exact same functionality. What is the difference between them?

:bust_in_silhouette: Reply From: MRimmer

PopupPanel and PopupDialog both inherit from Popup, so their functionality is very similar.

The main difference is that PopupPanel uses a panel as part of its structure. If you need to put some text in it for example, it would fit a lot better than in PopupDialogue. If you wanted more control over your popup, it would be better to use PopupDialogue (which provides a background which you can control the style of via the theme) or simply the Popup class.

You can see below for a visual comparison of the nodes. Each one contains a single RichTextEdit:

Popup Comparison