From 1e04c7202476969b601e014b19768d217be937c8 Mon Sep 17 00:00:00 2001 From: Continuity Date: Sun, 12 Jul 2020 01:03:51 +0200 Subject: [PATCH] - fixing cast bar alpha not updating properly --- fw.lua | 2 +- panel.lua | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/fw.lua b/fw.lua index c9af04d..aba4a86 100644 --- a/fw.lua +++ b/fw.lua @@ -1,5 +1,5 @@ -local dversion = 191 +local dversion = 192 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor) diff --git a/panel.lua b/panel.lua index 2833ced..700880a 100644 --- a/panel.lua +++ b/panel.lua @@ -8301,17 +8301,18 @@ DF.CastFrameFunctions = { self.flashTexture:Hide() self:Animation_StopAllAnimations() + self:SetAlpha (1) + + --> set the statusbar color + self:UpdateCastColor() + if (not self:IsShown()) then self:Animation_FadeIn() end self.Spark:Show() - self:SetAlpha (1) self:Show() - --> set the statusbar color - self:UpdateCastColor() - --> update the interrupt cast border self:UpdateInterruptState() @@ -8357,16 +8358,17 @@ DF.CastFrameFunctions = { self.flashTexture:Hide() self:Animation_StopAllAnimations() + self:SetAlpha (1) + + --> set the statusbar color + self:UpdateCastColor() + if (not self:IsShown()) then self:Animation_FadeIn() end self.Spark:Show() - self:SetAlpha (1) self:Show() - - --> set the statusbar color - self:UpdateCastColor() --> update the interrupt cast border self:UpdateInterruptState()