WoW LibRecursiveAnim-1.0 addon Shadowlands/Burning Crusade Classic 2022
logo
wow addon LibRecursiveAnim-1.0

LibRecursiveAnim-1.0

Game Version: 3.3.5
Total Downloads: 248
Updated: Sep 4, 2010
Created: Sep 3, 2010
download LibRecursiveAnim-1.0Download Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
r3 beta 9.29 KB Sep 4, 2010 3.3.5 96 download LibRecursiveAnim-1.0 r3 betaDownload
r2 +1 More beta 9.08 KB Sep 3, 2010 3.3.5 49 download LibRecursiveAnim-1.0 r2

+1 More betaDownload
r6 alpha 9.32 KB Sep 4, 2010 3.3.5 45 download LibRecursiveAnim-1.0 r6 alphaDownload
r5 alpha 9.30 KB Sep 4, 2010 3.3.5 11 download LibRecursiveAnim-1.0 r5 alphaDownload
r4 alpha 9.32 KB Sep 4, 2010 3.3.5 11 download LibRecursiveAnim-1.0 r4 alphaDownload

Description

Share this:

LibRecursiveAnim-1.0

A library allows creating AnimationGroup that handles frame with all child frames as single object.

API documentation

Example:

libAnim = LibStub:GetLibrary("LibRecursiveAnim-1.0");
		
local MyFrame1 = CreateFrame("Frame", nil, UIParent);
MyFrame1:SetHeight(100);
MyFrame1:SetWidth(100);
MyFrame1:SetPoint("CENTER");
local Texture1 = MyFrame1:CreateTexture();
Texture1:SetAllPoints();
Texture1:SetTexture(0, 0, 0);

local animationGroup = libAnim:CreateRecursiveAnimationGroup(MyFrame1);
local animation = animationGroup:CreateAnimation("Rotation");
animation:SetDegrees(180);
animation:SetDuration(10);

local MyFrame2 = CreateFrame("Frame", nil, MyFrame1);
MyFrame2:SetHeight(100);
MyFrame2:SetWidth(100);
MyFrame2:SetPoint("BOTTOMLEFT", MyFrame1, "TOPRIGHT");
local Texture2 = MyFrame2:CreateTexture();
Texture2:SetAllPoints();
Texture2:SetTexture(0, 0, 0);

animationGroup:Refresh();
animationGroup:Play();

Comments

Add a comment