API:CircleImageSetRotation
From RoR Wiki
UI Lua API · CircleImage functions
Version: WAR 1.4.8
Rotates the picture shown by a CircleImage.
CircleImageSetRotation(imageName, angle)
Arguments
- imageName
string– Name of a CircleImage window.- angle
number– Rotation angle in degrees.
Returns
Nothing.
Details
- The angle is converted to radians and stored, and the image is rebuilt with its current texture and texture position.
- The function needs at least two arguments and only reads the last two.
- The stock UI never calls
CircleImageSetRotation.
Errors
Error in function call 'CircleImageSetRotation': Window %s does not existError in function call 'CircleImageSetRotation': Window %s is not a CircleImage
Example
A minimal example built from the signature above:
CircleImageSetRotation( "MyCircleImage", 45 )
