Inheriting AnimationGroups?
Hi,
I already posted this on mmo-champion but didn't get a reply (yet) but wish I posted it here instead: http://www.mmo-champion.com/threads/...o-be-inherited But basically I am wondering why method/function "Region:CreateAnimationGroup" has an "inheritsFrom" argument since I cannot seem to get it to work. I don't think you can create AnimationGroup virtual templates and to get around this I just created a virtual frame with the animation group attached it to and inherited that instead with the CreateFrame function. http://wowprogramming.com/docs/widge...AnimationGroup Lua Code:
But wanted to ask: I don't understand how the CreateAnimationGroup's "inheritsFrom" parameter works because as far as I know you cannot inherit an AnimationGroup directly and have never seen anyone ever attempt to use this parameter like I have tried to do. Also there are no examples to learn from. How can you use this "inheritsFrom" parameter to inherit an AnimationGroup? If you can't then what is it used for? Thank you for reading :) |
Try to increment the place of the template argument, just like the CreateTexture one:
Lua Code:
If thats not working then maybe it doesn't support templates which would be weird. On the second tought you maybe need this one: http://wowprogramming.com/docs/widge...reateAnimation |
Quote:
Lua Code:
Lua Code:
Code:
TestingFrame:CreateAnimationGroup(): Couldn't find inherited node "MY_AnimationGroupTemplate" I will try using CreateAnimation but its a pain since there are 2 Animation types I want to use and seems a shame to have to keep creating separate Animation Groups. |
What kinda animation do you exactly want to create?
|
Quote:
I have created it using the code already posted which works fine except I just couldn't create the Animation Group as a template to be reused with the CreateAnimationGroup function. |
All times are GMT -6. The time now is 11:03 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI