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
+1
View File
@@ -446,6 +446,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("bars", nil, "showmacro", "1")
pfUI:UpdateConfig("bars", nil, "showkeybind", "1")
pfUI:UpdateConfig("bars", nil, "hunterbar", "1")
pfUI:UpdateConfig("bars", nil, "keydown", "0")
pfUI:UpdateConfig("bars", nil, "hide_time", "1")
pfUI:UpdateConfig("bars", nil, "hide_actionmain", "0")
pfUI:UpdateConfig("bars", nil, "hide_bottomleft", "0")
+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")
+1
View File
@@ -1194,6 +1194,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["Show Macro Text"], C.bars, "showmacro", "checkbox")
CreateConfig(this, T["Show Hotkey Text"], C.bars, "showkeybind", "checkbox")
CreateConfig(this, T["Enable Range Based Auto Paging (Hunter)"], C.bars, "hunterbar", "checkbox")
CreateConfig(this, T["Enable Action On Key Down"], C.bars, "keydown", "checkbox")
this.setup = true
end
end)