From 97d0b34789a3699f32311421566778de79c81209 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 17 Feb 2019 17:14:26 +0100 Subject: [PATCH] actionbar: abort early on state updates --- modules/actionbar.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index afc9894e..79915f87 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -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