tonyis3l33t |
10-21-16 04:47 AM |
Quote:
Originally Posted by ObbleYeah
(Post 320104)
that seems like it would cause problems if you were to stop to look at the world map, or any other ui panel d:
|
Those can all be fixed with a big If statement.
Lua Code:
if UnitAffectingCombat("Player") or InCombatLockdown() or ChatFrame1EditBox:IsShown() or WorldMapFrame:IsShown() or MailFrame:IsShown() or GossipFrame:IsShown() or GameTooltipTextLeft1:GetText() or UnitCastingInfo("Player") or UnitChannelInfo("Player") or UnitExists("Target") then addon:FadeIn(); end;
I ended up liking what this looked like the more I worked on it, and now prefer it over my daftFrameFade (which fades frames individually) since using UIParent will "support" all addons. So I threw it up as daftUIFade. Note this one doesn't do the show-while-moving, the show-while-mouselooking, or the hide-after-not-moving-mouse stuff.
|