Rotation is an Animation that automatically applies an affine rotation to the region being animated. You can set the origin around which the rotation is being done, and the angle of rotation in either degrees or radians.
Rotation animations have no effect on FontStrings.
Defined Methods
- degrees = Rotation:GetDegrees() - Returns the animation's rotation amount (in degrees)
- point, xOffset, yOffset = Rotation:GetOrigin() - Returns the rotation animation's origin point
- radians = Rotation:GetRadians() - Returns the animation's rotation amount (in radians)
- Rotation:SetDegrees(degrees) - Sets the animation's rotation amount (in degrees)
- Rotation:SetOrigin("point", xOffset, yOffset) - Sets the rotation animation's origin point
- Rotation:SetRadians(radians) - Sets the animation's rotation amount (in radians)
Inherited Methods
- duration = Rotation:GetDuration() - Returns the time for the animation to progress from start to finish
- elapsed = Rotation:GetElapsed() - Returns the amount of time since the animation began playing
- delay = Rotation:GetEndDelay() - Returns the amount of time the animation delays after finishing
- name = Rotation:GetName() - Returns the widget object's name
- type = Rotation:GetObjectType() - Returns the object's widget type
- order = Rotation:GetOrder() - Returns the order of the animation within its parent group
- parent = Rotation:GetParent() - Returns the object's parent object
- progress = Rotation:GetProgress() - Returns the progress of an animation, ignoring smoothing effects
- progress = Rotation:GetProgressWithDelay() - Returns the progress of the animation and associated delays
- region = Rotation:GetRegionParent() - Returns the `Region` object on which the animation operates
- handler = Rotation:GetScript("scriptType") - Returns the widget's handler function for a script
- progress = Rotation:GetSmoothProgress() - Returns the progress of the animation (ignoring start and end delay)
- smoothType = Rotation:GetSmoothing() - Returns the smoothing type for the animation
- delay = Rotation:GetStartDelay() - Returns the amount of time the animation delays before its progress begins
- hasScript = Rotation:HasScript("scriptType") - Returns whether the widget supports a script handler
- Rotation:HookScript("scriptType", handler) - Securely hooks a script handler
- delaying = Rotation:IsDelaying() - Returns whether the animation is currently in the middle of a start or end delay
- done = Rotation:IsDone() - Returns whether the animation has finished playing
- isType = Rotation:IsObjectType("type") - Returns whether the object belongs to a given widget type
- paused = Rotation:IsPaused() - Returns whether the animation is currently paused
- playing = Rotation:IsPlaying() - Returns whether the animation is currently playing
- stopped = Rotation:IsStopped() - Returns whether the animation is currently stopped
- Rotation:Pause() - Pauses the animation
- Rotation:Play() - Plays the animation
- Rotation:SetDuration(duration) - Sets the time for the animation to progress from start to finish
- Rotation:SetEndDelay(delay) - Sets the amount of time for the animation to delay after finishing
- Rotation:SetOrder(order) - Sets the order for the animation to play within its parent group
- Rotation:SetParent(animGroup) or Rotation:SetParent("animGroupName") - Sets the parent for the animation
- Rotation:SetScript("scriptType", handler) - Sets the widget's handler function for a script
- Rotation:SetSmoothProgress() - This function is not yet documented
- Rotation:SetSmoothing("smoothType") - Sets the smoothing type for the animation
- Rotation:SetStartDelay(delay) - Sets the amount of time for the animation to delay before its progress begins
- Rotation:Stop() - Stops the animation
Script Handlers
- OnFinished(self, requested) - Run when the animation (or animation group) finishes animating
- OnLoad(self) - Run when the frame is created
- OnPause(self) - Run when the animation (or animation group) is paused
- OnPlay(self) - Run when the animation (or animation group) begins to play
- OnStop(self, requested) - Run when the animation (or animation group) is stopped
- OnUpdate(self, elapsed) - Run each time the screen is drawn by the game engine