Quantcast
WoWInterface - View Single Post - Fading frames until I mouseover
View Single Post
07-22-20, 12:19 PM   #5
Tim
A Frostmaul Preserver
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 285
Code:
do
   for _, frame in pairs({
      "PlayerFrame",
      "TargetFrame", -- you can keep adding more frames
   }) do
      frame:SetAlpha(0)
      frame:HookScript("OnEnter", function(self) self:SetAlpha(1) end)
      frame:HookScript("OnLeave", function(self) self:SetAlpha(0) end)
   end
end
__________________
AddOns: Tim @ WoWInterface
Characters: Hunter, Mage, Priest, Monk, DH,
Battle Tag: Tim#11172
Current PC Setup: PCPartPicker List
  Reply With Quote