Code refactory
This commit is contained in:
+3
-20
@@ -754,28 +754,11 @@ function BankFrame:UpdateBorderVisibility()
|
||||
hideBorders = false
|
||||
end
|
||||
|
||||
-- Use helper function with constants
|
||||
if hideBorders then
|
||||
-- Hide decorative borders but add thin white border
|
||||
frame:SetBackdrop({
|
||||
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
|
||||
edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
|
||||
tile = true,
|
||||
tileSize = 32,
|
||||
edgeSize = 2,
|
||||
insets = { left = 0, right = 0, top = 0, bottom = 0 }
|
||||
})
|
||||
frame:SetBackdropColor(0, 0, 0, 0.9)
|
||||
frame:SetBackdropBorderColor(1, 1, 1, 1)
|
||||
addon:ApplyBackdrop(frame, "MINIMALIST_BORDER", "DEFAULT")
|
||||
else
|
||||
frame:SetBackdrop({
|
||||
bgFile = "Interface\\Tooltips\\UI-Tooltip-Background",
|
||||
edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
|
||||
tile = true,
|
||||
tileSize = 32,
|
||||
edgeSize = 32,
|
||||
insets = { left = 11, right = 12, top = 12, bottom = 11 }
|
||||
})
|
||||
frame:SetBackdropColor(0, 0, 0, 0.9)
|
||||
addon:ApplyBackdrop(frame, "DEFAULT_FRAME", "DEFAULT")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user