Skip to content
reduz edited this page Feb 23, 2014 · 11 revisions

Popup

#####Inherits: Control

Brief Description

Base container control for popups and dialogs.

Member Functions

Signals

  • about_to_show ( )

Numeric Constants

  • NOTIFICATION_POST_POPUP = 80

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

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

  • void popup_centered_ratio ( real 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.

  • void popup ( )

Popup (show the control in modal form).

Clone this wiki locally