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 |
Methods
extraInitializationFromInitialInstance()
Initialize the extra parameters that could be set for an instance.
getBBText()
Get the markup text displayed by the object.
getColor()
Get the base color.
Returns:
Type | Description |
---|---|
The color as a "R;G;B" string, for example: "255;0;0" |
getHeight()
Get the height of the object.
getOpacity()
Get object opacity.
getWidth()
Get the width of the object.
getWrappingWidth()
Get the wrapping width of the object.
setAngle(angle)
Set the angle of the object.
Parameters:
Name | Type | Description |
---|---|---|
angle |
The new angle of the object. |
setBBText()
Set the markup text to display.
setOpacity(opacity)
Set object opacity.
Parameters:
Name | Type | Description |
---|---|---|
opacity |
The new opacity of the object (0-255). |
setWrappingWidth(width)
Set the width.
Parameters:
Name | Type | Description |
---|---|---|
width |
The new width in pixels. |
setX(x)
Set object position on X axis.
Parameters:
Name | Type | Description |
---|---|---|
x |
The new position X of the object. |
setY(y)
Set object position on Y axis.
Parameters:
Name | Type | Description |
---|---|---|
y |
The new position Y of the object. |