actionbar: add option to always allow drag via shift

This commit is contained in:
shagu
2019-04-17 19:47:23 +02:00
parent 42d62ac582
commit bdb277ced0
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -726,6 +726,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("bars", nil, "nacolor", ".3,.3,.3,1")
pfUI:UpdateConfig("bars", nil, "showequipped", "1")
pfUI:UpdateConfig("bars", nil, "eqcolor", ".2,.8,.2,.2")
pfUI:UpdateConfig("bars", nil, "shiftdrag", "1")
pfUI:UpdateConfig("bars", nil, "font", "Interface\\AddOns\\pfUI\\fonts\\BigNoodleTitling.ttf")
pfUI:UpdateConfig("bars", nil, "font_offset", "0")
+1 -1
View File
@@ -401,7 +401,7 @@ pfUI:RegisterModule("actionbar", 20400, function ()
local function ButtonDrag(self)
local self = self or this
if _G.LOCK_ACTIONBAR == "1" then return end
if _G.LOCK_ACTIONBAR == "1" and not (pfUI_config.bars.shiftdrag == "1" and IsShiftKeyDown()) then return end
if self.bar == 12 then
PickupPetAction(self.id)
+1
View File
@@ -1663,6 +1663,7 @@ pfUI:RegisterModule("gui", 20400, function ()
CreateConfig(U["bars"], T["Highlight Not Usable Spells"], C.bars, "showna", "checkbox")
CreateConfig(U["bars"], T["Not Usable Color"], C.bars, "nacolor", "color")
CreateConfig(U["bars"], T["Lock Actionbars"], "UVAR", "LOCK_ACTIONBAR", "checkbox")
CreateConfig(U["bars"], T["Always Allow Drag Via Shift Key"], C.bars, "shiftdrag", "checkbox")
CreateConfig(nil, "Font Options", nil, nil, "header")
CreateConfig(U["bars"], T["Font"], C.bars, "font", "dropdown", pfUI.gui.dropdowns.fonts)