from retail

This commit is contained in:
NoM0Re
2025-01-13 17:38:21 +01:00
parent 0291e5b5e7
commit d14313d848
4 changed files with 83 additions and 18 deletions
+8 -2
View File
@@ -338,9 +338,15 @@ local function SetAnimAlpha(self, alpha)
end
self.animAlpha = alpha;
if (WeakAuras.IsOptionsOpen()) then
self:SetAlpha(max(self.animAlpha or self.alpha or 1, 0.5));
local ok = pcall(self.SetAlpha, self, max(self.animAlpha or self.alpha or 1, 0.5))
if not ok then
Private.GetErrorHandlerId(self.id, L["Custom Fade Animation"])
end
else
self:SetAlpha(self.animAlpha or self.alpha or 1);
local ok = pcall(self.SetAlpha, self, self.animAlpha or self.alpha or 1)
if not ok then
Private.GetErrorHandlerId(self.id, L["Custom Fade Animation"])
end
end
self.subRegionEvents:Notify("AlphaChanged")
end