mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-01 19:30:00 +00:00
actionbar: allow to put actions on bar in combat
skip custom drag stop events during combat to allow client actions to be run instead of tainting the ui.
This commit is contained in:
@@ -283,6 +283,9 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
|
||||
end
|
||||
|
||||
local function ButtonDrag(self)
|
||||
-- skip during combat
|
||||
if InCombatLockdown and InCombatLockdown() then return end
|
||||
|
||||
local self = self or this
|
||||
|
||||
if _G.LOCK_ACTIONBAR == "1" and not (pfUI_config.bars.shiftdrag == "1" and IsShiftKeyDown()) then return end
|
||||
@@ -295,6 +298,9 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
|
||||
end
|
||||
|
||||
local function ButtonDragStop(self)
|
||||
-- skip during combat
|
||||
if InCombatLockdown and InCombatLockdown() then return end
|
||||
|
||||
local self = self or this
|
||||
|
||||
if MacroFrame_SaveMacro then
|
||||
|
||||
Reference in New Issue
Block a user