From 1f85b62a9a8e7cb5d61afea207ce30073604e8f4 Mon Sep 17 00:00:00 2001 From: Vollmer Date: Sun, 1 Sep 2024 19:09:11 +0200 Subject: [PATCH] consolidate alpha updates --- UnitFrames/UnitButton.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/UnitFrames/UnitButton.lua b/UnitFrames/UnitButton.lua index 1c334b1..be65f55 100644 --- a/UnitFrames/UnitButton.lua +++ b/UnitFrames/UnitButton.lua @@ -372,6 +372,7 @@ local function UpdateAppearance(kind) Util:IterateAllUnitButtons(function(button) U:UnitFrame_UpdateHealthColor(button) button.widgets.powerBar.UpdatePowerType(button) + button:SetBackdropColor(0, 0, 0, CellDB["appearance"]["bgAlpha"]) end) end if not kind or kind == "fullColor" then @@ -385,11 +386,6 @@ local function UpdateAppearance(kind) end) end) end - if not kind or kind == "alpha" then - Util:IterateAllUnitButtons(function(button) - button:SetBackdropColor(0, 0, 0, CellDB["appearance"]["bgAlpha"]) - end) - end if not kind or kind == "outOfRangeAlpha" then Util:IterateAllUnitButtons(function(button) button:UpdateInRange(nil, true)