Class: GraphicMessage

GraphicMessage

A class for message show text command

new GraphicMessage ()

Properties:
Name Type Description
message string The complete text to parse
faceset Picture2D The faceset picture
graphics Array.<Bitmap> All the graphics
positions Array.<number> All the positions according to graphics
tree Tree The text tree parsing

Extends

Methods

setMessage (message)

Set message (parse)
Name Type Description
message string The message to parse

updateTag (currentNode, tag, value, open, notClosed)Node

Update tag
Name Type Description
currentNode Node The current node
tag TagKind The tag kind
value string The name
open boolean Indicate if open tag
notClosed Array.<Node> List of unclosed nodes
Returns:
Type Description
Node

update ()

Update all

updateNodes (node, result)

Update the nodes
Name Type Description
node Node The current node
result Object The result object

drawBehind (x, y, w, h)

Drawing the faceset behind
Name Type Description
x number The x position to draw graphic
y number The y position to draw graphic
w number The width dimention to draw graphic
h number The height dimention to draw graphic

drawFaceset (x, y, w, h)

Drawing the faceset
Name Type Description
x number The x position to draw graphic
y number The y position to draw graphic
w number The width dimention to draw graphic
h number The height dimention to draw graphic

drawBox (x, y, w, h)

Drawing the message box
Name Type Description
x number The x position to draw graphic
y number The y position to draw graphic
w number The width dimention to draw graphic
h number The height dimention to draw graphic

setX (x, min) inherited overrides

Set the x value
Name Type Default Description
x number The x value
min boolean false optional If checked, transform screen value with min x y

setY (y, min) inherited overrides

Set the y value
Name Type Default Description
y number The y value
min boolean false optional If checked, transform screen value with min x y

setW (w, min) inherited overrides

Set the w value
Name Type Default Description
w number The w value
min boolean false optional If checked, transform screen value with min x y

setH (h, min) inherited overrides

Set the h value
Name Type Default Description
h number The h value
min boolean false optional If checked, transform screen value with min x y

setLeft () inherited overrides

Set the position to the left

setTop () inherited overrides

Set the position to the top

setRight () inherited overrides

Set the position to the right

setBot () inherited overrides

Set the position to the bot

setCoords (x, y, w, h) inherited overrides

Set all the coords values
Name Type Description
x number The x value
y number The y value
w number The w value
h number The h value