Documentation Topics
Function

PRVirconBtnSetLabel()

Sets the given buttons's label sprite.


Declaration

PRVirconBtnSetLabel(btnId, sprite, xOffsetX, yOffset, scale, shouldScaleWhenSel, rotation)

Parameters

btnId

The button ID.

sprite

The sprite to use for the button's label.

xOffset

The x-offset of the label sprite from the center of the button.

yOffset

The y-offset of the label sprite from the center of the button.

scale

The scale size to apply to the label sprite with 1 being normal size.

shouldScaleWhenSel

true or false indicating if the label should scale when the button is pressed. Useful for when the label is positioned outside of the button's body.

rotation

The angle at which to draw the label sprite.

Return Value

n/a