View Single Post
10-21-16, 04:47 AM   #24
tonyis3l33t
A Cyclonian
 
tonyis3l33t's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 47
Originally Posted by ObbleYeah View Post
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:
  1. if UnitAffectingCombat("Player")
  2.     or InCombatLockdown()
  3.     or ChatFrame1EditBox:IsShown()
  4.     or WorldMapFrame:IsShown()
  5.     or MailFrame:IsShown()
  6.     or GossipFrame:IsShown()
  7.     or GameTooltipTextLeft1:GetText()
  8.     or UnitCastingInfo("Player")
  9.     or UnitChannelInfo("Player")
  10.     or UnitExists("Target") then
  11.         addon:FadeIn();
  12.     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.

Last edited by tonyis3l33t : 10-21-16 at 05:02 AM.
  Reply With Quote