WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   frame:CreateAnimation("Alpha") bug (https://www.wowinterface.com/forums/showthread.php?t=54355)

zork 08-31-16 03:42 PM

frame:CreateAnimation("Alpha") bug
 
I use the animation API to show/hide frames on mouseover.
https://github.com/zorker/rothui/blo...efader.lua#L26

It works really well but today I recognized a flaw. If the frame that I fade in has child frames with an alpha of 0 those frames will be faded in aswell unintentionally and become visible.

Instead of fading in the frame only all children are faded in aswell. Is there a to prevent this?

zork 11-30-16 02:16 PM

I just commited a bugfix for my problem:
https://github.com/zorker/rothui/com...a3128b8a6b569b

Instead of adding the animationgroup to the frame I actually want to fade I create a subframe with no regions for the animationgroup only now. I grab the alpha value OnUpdate and apply it to the actual frame.


All times are GMT -6. The time now is 01:55 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI