PanelSpriteRuntimeObject

PanelSpriteRuntimeObject

The PanelSpriteRuntimeObject displays a tiled texture.

Constructor

new PanelSpriteRuntimeObject(runtimeScene, panelSpriteObjectData)

Parameters:
Name Type Description
runtimeScene

The scene the object belongs to.

panelSpriteObjectData

The initial properties of the object

Source:

Methods

extraInitializationFromInitialInstance()

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

Source:

getColor()

Get the tint of the panel sprite object.

Returns:
Type Description

The color, in RGB format ("128;200;255").

Source:

getHeight()

Get the height of the panel sprite in pixels

Returns:
Type Description

The height in pixels

Source:

getOpacity()

Get the transparency of the object.

Returns:
Type Description

The opacity, between 0 (transparent) and 255 (opaque).

Source:

getWidth()

Get the width of the panel sprite in pixels

Returns:
Type Description

The width in pixels

Source:

setAngle(angle)

Set the angle of the panel sprite.

Parameters:
Name Type Description
angle

The new angle in degrees.

Source:

setColor(rgbColor)

Change the tint of the panel sprite object.

Parameters:
Name Type Description
rgbColor

The color, in RGB format ("128;200;255").

Source:

setHeight(height)

Set the height of the panel sprite.

Parameters:
Name Type Description
height

The new height in pixels.

Source:

setOpacity(opacity)

Change the transparency of the object.

Parameters:
Name Type Description
opacity

The new opacity, between 0 (transparent) and 255 (opaque).

Source:

setTexture(textureName, runtimeScene)

Set the texture of the panel sprite.

Parameters:
Name Type Description
textureName

The name of the texture.

runtimeScene

The scene the object lives in.

Source:

setWidth(width)

Set the width of the panel sprite.

Parameters:
Name Type Description
width

The new width in pixels.

Source:

setX(x)

Set the x position of the panel sprite.

Parameters:
Name Type Description
x

The new x position in pixels.

Source:

setY(y)

Set the y position of the panel sprite.

Parameters:
Name Type Description
y

The new y position in pixels.

Source: