Thread Tools Display Modes
08-31-16, 03:42 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
 
11-30-16, 02:16 PM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » frame:CreateAnimation("Alpha") bug

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off