Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:CircleImageSetRotation

From RoR Wiki
Revision as of 19:41, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 exist
  • Error in function call 'CircleImageSetRotation': Window %s is not a CircleImage

Example

A minimal example built from the signature above:

CircleImageSetRotation( "MyCircleImage", 45 )

See also