Code refactory

This commit is contained in:
Salikh Gurgenidze
2025-11-19 19:22:52 +04:00
parent 0ff0aed647
commit a506b88f47
6 changed files with 109 additions and 162 deletions
+3 -20
View File
@@ -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