class_popup - vkbsb/godot GitHub Wiki

Popup

####Inherits: Control ####Category: Core

Brief Description

Base container control for popups and dialogs.

Member Functions

Signals

  • popup_hide ( )
  • about_to_show ( )

Numeric Constants

  • NOTIFICATION_POST_POPUP = 80
  • NOTIFICATION_POPUP_HIDE = 81

Description

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

Member Function Description

popup_centered

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

Popup (show the control in modal form) in the center of the screen, at the curent size, or at a size determined by "size".

popup_centered_ratio

  • void popup_centered_ratio ( float ratio=0.75 )

Popup (show the control in modal form) in the center of the screen, scalled at a ratio of size of the screen.

popup

  • void popup ( )

Popup (show the control in modal form).