actionbar: add option to use actions on keydown

This commit is contained in:
shagu
2017-12-03 12:52:06 +01:00
parent 8e04724e72
commit 6f7f8a18b4
3 changed files with 12 additions and 0 deletions
+10
View File
@@ -44,6 +44,16 @@ pfUI:RegisterModule("actionbar", function ()
if pfBonusBar then pfBonusBar:Hide() end
end)
if C.bars.keydown == "1" then
hooksecurefunc("ActionButtonDown", function(id)
ActionButtonUp(id)
end, true)
hooksecurefunc("MultiActionButtonDown", function(bar, id)
MultiActionButtonUp(bar, id)
end, true)
end
-- reagent counter
local reagentslots = { }
local reagentscan = CreateFrame("GameTooltip", "pfReagentScanner", UIParent, "GameTooltipTemplate")