Feature request: animations
This is a crosspost to http://www.wowinterface.com/forums/s...343#post290343
Currently a widget will be reset when an animation ends (to it's original position, angle, etc.). An option/flag to retain the widgets position, angle, etc. at the end of an animation would be a great addition to the animation feature. For example to 'permanently' rotate a widget. Thank you. |
This would quite a handy addition.
|
You mean like animationGroup:SetLooping("REPEAT"), or i'm not sure what do you mean.
|
No, he means that if you do:
Code:
local frame = CreateFrame("Frame") Looping would not help here, as a loop would just make the frame fade in and out repeatedly, which is not the desired behavior. |
Yes, that's exactly what I was asking for.
At the moment I'm doing it via ag:SetEndDelay() and then pausing the animation at onFinish (which is fired if the animation itself is done and before the delay starts). But I wouldn't consider this as a good practice. It's rather a bad hack than 'using a feature'. :) I introduces some unwanted problems too. It's even worse with rotating than with fading or translating. Afaik the animation is the only way to rotate a frame (let's say an action button that represents a clickable area). The only other way to rotate something is SetTexCoord(), which applies to textures only. |
Quote:
|
Also you could add this to the list:
If you animate something with SetGradientAlpha added it drop it's colors during the animation. |
All times are GMT -6. The time now is 08:16 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI