Class: InteractivePopup

InteractivePopup

Class that represents a PixiJS InteractivePopup. The class is used for various other Popup-like classes like Popup, Message...

new InteractivePopup (opts) abstract

Creates an instance of an InteractivePopup (only for internal use).

Name Type Description
opts object optional

An options object to specify to style and behaviour of the popup.

Name Type Default Description
closeOnPopup boolean false optional

Should the popup be closed when the user clicks on the popup?

closeButton boolean true optional

Should a close button be displayed on the upper right corner?

button object optional

A Button object to be display on the lower right corner.

buttonGroup object optional

A ButtonGroup object to be displayed on the lower right corner.

Extends

Classes

InteractivePopup

Members

content string | number | PIXI.DisplayObject inherited overrides

Sets or gets the content. The getter always returns an PIXI.DisplayObject. The setter can receive a string, a number or a PIXI.DisplayObject.

Sets or gets the header. The getter always returns a PIXI.Text object. The setter can receive a string, a number or a PIXI.Text object.

Methods

Hides the popup (sets his alpha values to 0).

Name Type Description
cb callback optional

Executed when hide animation was completed.

Returns:
Type Description
AbstractPopup A reference to the popup for chaining.

Should be called to refresh the layout of the popup. Can be used after resizing.

Returns:
Type Description
AbstractPopup A reference to the popup for chaining.

Shows the popup (sets his alpha values to 1).

Name Type Description
cb callback optional

Executed when show animation was completed.

Returns:
Type Description
AbstractPopup A reference to the popup for chaining.