Skip to content

Commit

Permalink
consolidate alpha updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Krealle committed Sep 1, 2024
1 parent 49efaae commit 1f85b62
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions UnitFrames/UnitButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 1f85b62

Please sign in to comment.