BBTextRuntimeObject

BBTextRuntimeObject

Displays a rich text using BBCode markup (allowing to set parts of the text as bold, italic, use different colors and shadows).

Constructor

new BBTextRuntimeObject(runtimeScene, objectData)

Parameters:
Name Type Description
runtimeScene

The scene the object belongs to.

objectData

The object data used to initialize the object

Source:

Methods

extraInitializationFromInitialInstance()

Initialize the extra parameters that could be set for an instance.

Source:

getBBText()

Get the markup text displayed by the object.

Source:

getColor()

Get the base color.

Returns:
Type Description

The color as a "R;G;B" string, for example: "255;0;0"

Source:

getHeight()

Get the height of the object.

Source:

getOpacity()

Get object opacity.

Source:

getWidth()

Get the width of the object.

Source:

getWrappingWidth()

Get the wrapping width of the object.

Source:

setAngle(angle)

Set the angle of the object.

Parameters:
Name Type Description
angle

The new angle of the object.

Source:

setBBText()

Set the markup text to display.

Source:

setOpacity(opacity)

Set object opacity.

Parameters:
Name Type Description
opacity

The new opacity of the object (0-255).

Source:

setWrappingWidth(width)

Set the width.

Parameters:
Name Type Description
width

The new width in pixels.

Source:

setX(x)

Set object position on X axis.

Parameters:
Name Type Description
x

The new position X of the object.

Source:

setY(y)

Set object position on Y axis.

Parameters:
Name Type Description
y

The new position Y of the object.

Source: