DialogLayer

Package: Libraries.Game · Inherits from: Libraries.Language.Object, Libraries.Game.Layer, Libraries.Game.Layer2D

Actions

IsModal()

This IsModal action returns whether or not the Dialog that is placed on this Layer is modal.

Returns

boolean

OnHide()

The OnHide action is called when a DialogLayer is being removed due to a Dialog closing. This action is responsible for shifting focus back to the original Item after the Dialog is closed.

OnShow()

The OnShow action is called when a DialogLayer is used to display a Dialog. This action is responsible for handling the shift in focus when a Dialog appears.

ProcessMouseEvent(Libraries.Interface.Events.MouseEvent event)

This action will notify mouse listeners that are a part of this layer of the given mouse event. This is called automatically by the Game engine as needed. Most users will never need to use this action directly.

Parameters

Returns

Libraries.Interface.Item: The Item which intercepted the event, or undefined if no Item received the event.

ProcessTouchEvent(Libraries.Interface.Events.TouchEvent event)

This action will notify touch listeners that are a part of this layer of the given touch event. This is called automatically by the Game engine as needed. Most users will never need to use this action directly.

Parameters

Returns

Libraries.Interface.Item

Reset()

This action resets the DialogLayer to its default values. This is used whenever a DialogLayer is recycled by a DialogLayerPool.

SetModal(boolean modal)

The SetModal action is used to determine whether the Dialog is modal or not. If the Dialog is modal, the Layer will intercept input that would otherwise propagate to lower Layers.

Parameters

  • modal boolean

Inherited Actions

16 actions from Libraries.Game.Layer
79 actions from Libraries.Game.Layer2D
3 actions from Libraries.Language.Object