Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:CircleImageMoveRotationCenter

From RoR Wiki

UI Lua API · CircleImage functions
Version: WAR 1.4.8

Sets the point a CircleImage rotates around.

CircleImageMoveRotationCenter(imageName, x, y)

Arguments

imageName
string – Name of a CircleImage window.
x, y
number – The new rotation centre.

Returns

Nothing.

Details

  • Only the two stored centre values are changed. The image is not rebuilt by this call, unlike CircleImageSetRotation.
  • The values are not range-checked.
  • The error messages name CircleImageSetRotation, not this function.
  • The function needs at least three arguments and only reads the last three.
  • The stock UI never calls CircleImageMoveRotationCenter.

Errors

These are written to the UI log; the call returns normally.

  • 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:

CircleImageMoveRotationCenter( "MyCircleImage", 32, 32 )
CircleImageSetRotation( "MyCircleImage", 90 )

See also