aggixx

Untitled

Sep 14th, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. --[[
  2. Handle hiding/showing MBF on mouseover.
  3. ]]
  4. MBF_mouseover_onUpdate = false
  5. MinimapButtonFrame:HookScript("onEnter", function(self)
  6. MinimapButtonFrame:SetAlpha(1)
  7. MBF_mouseover_onUpdate = true
  8. end)
  9. MinimapButtonFrame:HookScript("onUpdate", function(self)
  10. if MBF_mouseover_onUpdate == true then
  11. if MinimapButtonFrame:IsMouseOver() == nil then
  12. MinimapButtonFrame:SetAlpha(0)
  13. MBF_mouseover_onUpdate = false
  14. end
  15. end
  16. end)
  17. MinimapButtonFrame:SetAlpha(0)
Advertisement
Add Comment
Please, Sign In to add comment