actionbar: abort early on state updates

This commit is contained in:
shagu
2019-03-31 14:59:20 +02:00
parent d498d061f8
commit 97d0b34789
+12 -1
View File
@@ -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