static_size

text

textjustifyh

Sets the Dialog's horizontal text alignment style based on the following values: (string)

CENTER

LEFT

RIGHT

textjustifyv

Sets the Dialog's vertical text alignment style based on the following values: (string)

BOTTOM

MIDDLE

TOP

width

Width for the Dialog (in pixels); if omitted or 0, causes the Dialog's height to be determined automatically based on its contents. (number)

Scripts

on_cancel = function(self, data, reason)

Called when the Dialog is canceled.

Arguments

self - Reference to the Dialog for which the script was run. (frame)

data - The data passed to the Delegate when the Dialog was instatntated via lib:Spawn() (variable)

reason - Reason for cancelation. Not always present. The library will use the following according to circumstance: (string)

timeout - Passed when a Dialog's duration has run out.

override - Passed when a Dialog is dismissed by either being in the cancelsonspawn list of another Dialog, having its isexclusive value set to true when another Dialog with its isexclusive value set is spawned, or when the same Dialog is spawned again and its nocancelon_reuse value is empty or false.

on_hide = function(self)

Run when the Dialog becomes invisible.

Arguments

self - Reference to the Dialog for which the script was run. (frame)

on_show = function(self)

Run when the Dialog becomes visible.

Arguments

self - Reference to the Dialog for which the script was run. (frame)

on_update = function(self, elapsed)

Run each time the screen is drawn by the game engine. This handler runs for each frame draw.

Arguments

self - Reference to the Dialog for which the script was run. (frame)

elapsed - Number of seconds since the OnUpdate handlers were last run (likely a fraction of a second). (number)