View Single Post
03-09-13, 05:19 PM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
If you don't mind making the frame intercept mouse clicks then you can do it like
Lua Code:
  1. frame:EnableMouse()
  2. frame:SetScript('OnEnter', function() highlightStuff end)
  3. frame:SetScript('OnLeave', function() unHighightStuff end)
Otherwise you can check frame:IsMouseOver() OnUpdate.

I think buttons have highlight scripts set up by default.
  Reply With Quote