LibRecursiveAnim-1.0

This project is experimental.

This project is only experimental and may change drastically between now and when it comes out of experimental status. It may even be disapproved once that happens, worst-case.

Be forewarned before downloading anything from this project.

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();

You must login to post a comment. Don't have an account? Register to get one!

Facts

Date created
Sep 03, 2010
Category
Last update
Sep 04, 2010
Development stage
Beta
License
GNU General Public License version 2 (GPLv2)
Downloads
37
Recent files
  • A: r6 for 3.3.5 Sep 04, 2010
  • A: r5 for 3.3.5 Sep 04, 2010
  • A: r4 for 3.3.5 Sep 04, 2010
  • B: r3 for 3.3.5 Sep 04, 2010
  • B: r2 for 3.3.5 Sep 03, 2010

Authors