Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unread 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,351
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.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"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.
zork is offline   Reply With Quote
 

Go BackWoWInterface » Developer Discussions » Tutorials & Other Helpful Info. » Animation roundup

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off