mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
fix mousueover for many ui addons and add many more to support them
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
]]
|
||||
local _G = _G or getfenv(0)
|
||||
local CleveRoids = _G.CleveRoids or {}
|
||||
CleveRoids.mouseoverUnit = CleveRoids.mouseoverUnit or nil
|
||||
|
||||
local Extension = CleveRoids.RegisterExtension("CT_UnitFrames")
|
||||
Extension.RegisterEvent("ADDON_LOADED", "OnLoad")
|
||||
@@ -15,12 +14,12 @@ function Extension.SetHook(widget)
|
||||
|
||||
widget:SetScript("OnEnter", function()
|
||||
hookedOnEnter()
|
||||
CleveRoids.mouseoverUnit = "targettarget"
|
||||
CleveRoids.SetMouseoverFrom("ctuf", "targettarget")
|
||||
end)
|
||||
|
||||
widget:SetScript("OnLeave", function()
|
||||
hookedOnLeave()
|
||||
CleveRoids.mouseoverUnit = nil
|
||||
CleveRoids.ClearMouseoverFrom("ctuf")
|
||||
end)
|
||||
end
|
||||
|
||||
@@ -36,4 +35,4 @@ function Extension.OnLoad()
|
||||
Extension.SetHook(CT_AssistFrame_Drag)
|
||||
end
|
||||
|
||||
_G["CleveRoids"] = CleveRoids
|
||||
_G["CleveRoids"] = CleveRoids
|
||||
|
||||
Reference in New Issue
Block a user