mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 23:20:00 +00:00
thirdparty: add support for clevermacro
This commit is contained in:
@@ -836,6 +836,24 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function()
|
||||
end)
|
||||
end)
|
||||
|
||||
-- CleverMacro
|
||||
-- https://github.com/DanielAdolfsson/CleverMacro
|
||||
HookAddonOrVariable("CleverMacro", function()
|
||||
if C.thirdparty.clevermacro.enable == "0" then return end
|
||||
|
||||
-- get pfUI actionbar event handler
|
||||
local events = pfUI.bars and pfUI.bars:GetScript("OnEvent")
|
||||
if not events then return end
|
||||
|
||||
-- disable pfUI macro scanning
|
||||
pfUI.bars.skip_macro = true
|
||||
|
||||
-- send clevermacro events to pfUI actionbars
|
||||
hooksecurefunc("ActionButton_OnEvent", function(event)
|
||||
events(this, event)
|
||||
end)
|
||||
end)
|
||||
|
||||
HookAddonOrVariable("AtlasLoot", function()
|
||||
if C.thirdparty.atlasloot.enable == "0" then return end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user