Popup

    Inherited By: , PopupMenu, , WindowDialog

    Category: Core

    Base container control for popups and dialogs.

    Properties

    Signals

    • about_to_show ( )

    • popup_hide ( )

    This signal is emitted when a popup is hidden.

    • NOTIFICATION_POST_POPUP = 80 — Notification sent right after the popup is shown.

    Description

    Popup is a base used to show dialogs and popups. It’s a subwindow and modal by default (see Control) and has helpers for custom popup behavior.

    • popup_exclusive

    If , the popup will not be hidden when a click event occurs outside of it, or when it receives the action event.

    Method Descriptions

    • void popup ( Rect2 bounds=Rect2( 0, 0, 0, 0 ) )

    • void popup_centered ( size=Vector2( 0, 0 ) )

    Popup (show the control in modal form) in the center of the screen relative to its current canvas transform, at the current size, or at a size determined by “size”.


    • void popup_centered_minsize ( Vector2 minsize=Vector2( 0, 0 ) )

    Popup (show the control in modal form) in the center of the screen relative to the current canvas transform, ensuring the size is never smaller than .


    • void popup_centered_ratio ( ratio=0.75 )

    Popup (show the control in modal form) in the center of the screen relative to the current canvas transform, scaled at a ratio of size of the screen.