thirdparty: add support for clevermacro

This commit is contained in:
shagu
2023-10-31 12:05:00 +01:00
parent 7d33976043
commit 72d577e2bf
4 changed files with 21 additions and 0 deletions
+18
View File
@@ -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