mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
actionbar: abort early on state updates
This commit is contained in:
+12
-1
@@ -197,6 +197,18 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
local start, duration, enable
|
||||
local castable, autocast
|
||||
|
||||
-- abort as early as possible on regular state update
|
||||
if event == "ACTIONBAR_UPDATE_STATE" and self.bar ~= 11 and self.bar ~= 12 then
|
||||
if IsCurrentAction(sid) then
|
||||
self.backdrop:SetBackdropBorderColor(cr,cg,cb,1)
|
||||
self.active:Show()
|
||||
else
|
||||
CreateBackdrop(self)
|
||||
self.active:Hide()
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
if self.bar == 11 then
|
||||
-- stance button
|
||||
id = sid
|
||||
@@ -221,7 +233,6 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
start, duration, enable = GetActionCooldown(sid)
|
||||
end
|
||||
|
||||
|
||||
if not self.showempty and self.backdrop and not texture and showgrid == 0 then
|
||||
self.backdrop:Hide()
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user