Translation is an Animation type that applies an affine translation to its affected region automatically as it progresses. You can set the offset in both the X and Y dimensions. Translations can be applied normally to both Textures and FontStrings.
Defined Methods
- xOffset, yOffset = Translation:GetOffset() - Returns the animation's translation offsets
- Translation:SetOffset(xOffset, yOffset) - Sets the animation's translation offsets
Inherited Methods
- Translation:IsForbidden() - This function is not yet documented
- isType = Translation:IsObjectType("type") - Returns whether the object belongs to a given widget type
- paused = Translation:IsPaused() - Returns whether the animation is currently paused
- playing = Translation:IsPlaying() - Returns whether the animation is currently playing
- stopped = Translation:IsStopped() - Returns whether the animation is currently stopped
- Translation:Pause() - Pauses the animation
- Translation:Play() - Plays the animation
- Translation:SetChildKey(key) - Sets the animation to manipulate a particular child member of its host frame
- Translation:SetDuration(duration) - Sets the time for the animation to progress from start to finish
- Translation:SetEndDelay(delay) - Sets the amount of time for the animation to delay after finishing
- Translation:SetOrder(order) - Sets the order for the animation to play within its parent group
- Translation:SetParent(animGroup) or Translation:SetParent("animGroupName") - Sets the parent for the animation
- Translation:SetScript("scriptType", handler) - Sets the widget's handler function for a script
- Translation:SetSmoothProgress() - This function is not yet documented
- Translation:SetSmoothing("smoothType") - Sets the smoothing type for the animation
- Translation:SetStartDelay(delay) - Sets the amount of time for the animation to delay before its progress begins
- Translation:SetTarget(region) - Sets the region affected by this animation
- Translation:SetTargetKey(key) - Sets the animation to manipulate a particular child member of its target
- Translation: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