fix: bank frame UI for pfUI
This commit is contained in:
+5
-2
@@ -704,8 +704,11 @@ function Theme:ApplyFramePadding()
|
||||
|
||||
-- BankFrame adjustments (similar structure)
|
||||
local bankFrameElements = {
|
||||
{ name = "Guda_BankFrame_Title", pfui = { "TOP", nil, "TOP", 0, -8 }, default = { "TOP", nil, "TOP", 0, -12 } },
|
||||
{ name = "Guda_BankFrame_CloseButton", pfui = { "TOPRIGHT", nil, "TOPRIGHT", -5, -5 }, default = { "TOPRIGHT", nil, "TOPRIGHT", -13, -10 } },
|
||||
{ name = "Guda_BankFrame_Title", pfui = { "TOP", nil, "TOP", 0, -8 }, default = { "TOP", nil, "TOP", 0, -12 } },
|
||||
{ name = "Guda_BankFrame_CloseButton", pfui = { "TOPRIGHT", nil, "TOPRIGHT", -5, -5 }, default = { "TOPRIGHT", nil, "TOPRIGHT", -13, -10 } },
|
||||
{ name = "Guda_BankFrame_BlizzardUIButton", pfui = { "TOPLEFT", nil, "TOPLEFT", 10, -8 }, default = { "TOPLEFT", nil, "TOPLEFT", 23, -15 } },
|
||||
{ name = "Guda_BankFrame_SearchBar", pfui = { "TOP", nil, "TOP", 0, -28 }, default = { "TOP", nil, "TOP", 0, -40 } },
|
||||
{ name = "Guda_BankFrame_Toolbar", pfui = { "BOTTOMLEFT", nil, "BOTTOMLEFT", 5, 5 }, default = { "BOTTOMLEFT", nil, "BOTTOMLEFT", 15, 5 } },
|
||||
}
|
||||
for _, elem in ipairs(bankFrameElements) do
|
||||
local frame = getglobal(elem.name)
|
||||
|
||||
@@ -144,6 +144,9 @@ end
|
||||
|
||||
-- OnLoad
|
||||
function Guda_BagFrame_OnLoad(self)
|
||||
-- Prevent frame from being dragged off screen
|
||||
self:SetClampedToScreen(true)
|
||||
|
||||
-- Set up initial backdrop
|
||||
addon:ApplyBackdrop(self, "DEFAULT_FRAME")
|
||||
|
||||
|
||||
@@ -127,6 +127,8 @@ end
|
||||
|
||||
-- OnLoad
|
||||
function Guda_BankFrame_OnLoad(self)
|
||||
self:SetClampedToScreen(true)
|
||||
|
||||
-- Set up initial backdrop
|
||||
addon:ApplyBackdrop(self, "DEFAULT_FRAME")
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ local mailboxClickCatcher = nil
|
||||
|
||||
-- OnLoad
|
||||
function Guda_MailboxFrame_OnLoad(self)
|
||||
self:SetClampedToScreen(true)
|
||||
|
||||
-- Apply border visibility setting
|
||||
if MailboxFrame.UpdateBorderVisibility then
|
||||
MailboxFrame:UpdateBorderVisibility()
|
||||
|
||||
@@ -33,6 +33,8 @@ end
|
||||
|
||||
-- OnLoad
|
||||
function Guda_SettingsPopup_OnLoad(self)
|
||||
self:SetClampedToScreen(true)
|
||||
|
||||
-- Set up initial backdrop
|
||||
Guda:ApplyBackdrop(self, "DEFAULT_FRAME")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user