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
- Rotation:IsForbidden() - This function is not yet documented
- 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:SetChildKey(key) - Sets the animation to manipulate a particular child member of its host frame
- 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:SetTarget(region) - Sets the region affected by this animation
- Rotation:SetTargetKey(key) - Sets the animation to manipulate a particular child member of its target
- 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