Skip to content

Commit

Permalink
[Bugfix] Fix Unit Frame borders acting weird with CELL_BORDER_SIZE se…
Browse files Browse the repository at this point in the history
…t to 0
  • Loading branch information
Krealle committed Nov 3, 2024
1 parent fa93729 commit f5252e1
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions UnitFrames/OnLoad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -617,14 +617,15 @@ function CUFUnitButton_OnLoad(button)
end

-- backdrop
button:SetBackdrop({
bgFile = Cell.vars.whiteTexture,
edgeFile = Cell.vars.whiteTexture,
edgeSize = P:Scale(
CELL_BORDER_SIZE)
})
button:SetBackdropColor(0, 0, 0, 1)
button:SetBackdropBorderColor(unpack(CELL_BORDER_COLOR))
if CELL_BORDER_SIZE > 0 then
button:SetBackdrop({
bgFile = Cell.vars.whiteTexture,
edgeFile = Cell.vars.whiteTexture,
edgeSize = CELL_BORDER_SIZE
})
button:SetBackdropColor(0, 0, 0, 1)
button:SetBackdropBorderColor(unpack(CELL_BORDER_COLOR))
end

-- Widgets
W:CreateHealthBar(button)
Expand Down

0 comments on commit f5252e1

Please sign in to comment.