mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 01:46:03 +00:00
actionbar: add option to always allow drag via shift
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user