View Single Post
09-22-10, 07:21 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Animation roundup

A thread to gather all the information on animations.

Bookmarks

3.1.0 API Changes
http://forums.worldofwarcraft.com/th...Id=15443414368

WoWPedia
http://wowpedia.org/Widget_API#Region
http://wowpedia.org/Widget_API#AnimationGroup
http://wowpedia.org/Widget_API#Animation
http://wowpedia.org/Widget_API#Animation_Derivatives

WoW-Programming
http://wowprogramming.com/docs/widge...AnimationGroup
http://wowprogramming.com/docs/widgets/AnimationGroup
http://wowprogramming.com/docs/widgets/Animation
http://wowprogramming.com/docs/widgets/Alpha
http://wowprogramming.com/docs/widgets/Rotation
http://wowprogramming.com/docs/widgets/Scale
http://wowprogramming.com/docs/widgets/Translation

Examples

Blackbox

http://static.curseforge.net/content..._for_3.1.2.zip

rFrameRotater
http://code.google.com/p/rothui/sour...ameRotater.lua

My goal is to create a small example library for each AnimationType.

First gathering (subject of change)
Code:
    --define frame
    
    local f = CreateFrame("Frame")
    ...

    local ag = f:CreateAnimationGroup()    

    local a1 = ag:CreateAnimation("Translation")
    a1:SetOffset(x, y)    
    a1:SetDuration(3)
    a1:SetSmoothing("OUT")

    local a2 = ag:CreateAnimation("Scale")
    a2:SetScale(x, y)
    a2:SetDuration(3)
    a2:SetSmoothing("OUT")

    local a3 = ag:CreateAnimation("Rotation")
    a3:SetDegrees(180)
    a3:SetDuration(3)
    a3:SetSmoothing("OUT")
    
    local a4 = ag:CreateAnimation("Alpha")
    a4:SetChange(-0.5)
    a4:SetDuration(3)
    a4:SetSmoothing("OUT")

    ag:Play()
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-15-14 at 07:35 AM.
  Reply With Quote