AnimationGroup:CreateAnimation()

From Wowpedia
Jump to: navigation, search

Creates a new Animation within the AnimationGroup.

animation = AnimationGroup:CreateAnimation( "animationType" [, "name" [, "inheritsFrom"] ] )

Arguments

animationType 
String - Type of the animation to create, one of: Animation, Translation, Rotation, Alpha, Scale, ControlPoints and Path
name 
String - Desired global name that will be assigned as _G[name], or nil to avoid creating a global reference
inheritsFrom 
String - Comma-separated list of names of XML animation templates to inherit from

Returns

animation 
Widget - Local reference to the created animation object

Notes

  • The animation will act on the Region who is the AnimationGroup's parent.
  • It appears that all animations involving moving a PlayerModel frame will fail silently. Alpha animations are the only animation type which will have any effect on these frames.

Patch changes

References

 
  1. ^ zork 2010-09-22. 3.1.0 Animation roundup.