mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
actionbar: add option to use actions on keydown
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user