feat: offline mailbox
This commit is contained in:
+10
-1
@@ -368,7 +368,7 @@ function Guda_ApplyBackgroundTransparency()
|
||||
local transparency = Guda.Modules.DB:GetSetting("bgTransparency") or 0.15
|
||||
local alpha = 1.0 - transparency
|
||||
|
||||
local frames = { "Guda_BagFrame", "Guda_BankFrame", "Guda_SettingsPopup", "Guda_QuestItemBar" }
|
||||
local frames = { "Guda_BagFrame", "Guda_BankFrame", "Guda_MailboxFrame", "Guda_SettingsPopup", "Guda_QuestItemBar" }
|
||||
for _, frameName in ipairs(frames) do
|
||||
local frame = getglobal(frameName)
|
||||
if frame then
|
||||
@@ -603,6 +603,15 @@ function Guda_SettingsPopup_HideBordersCheckbox_OnClick(self)
|
||||
end
|
||||
end
|
||||
|
||||
local mailboxFrame = getglobal("Guda_MailboxFrame")
|
||||
if mailboxFrame then
|
||||
if isChecked then
|
||||
Guda:ApplyBackdrop(mailboxFrame, "MINIMALIST_BORDER", "DEFAULT")
|
||||
else
|
||||
Guda:ApplyBackdrop(mailboxFrame, "DEFAULT_FRAME", "DEFAULT")
|
||||
end
|
||||
end
|
||||
|
||||
-- Update border visibility on settings frame
|
||||
if SettingsPopup.UpdateBorderVisibility then
|
||||
SettingsPopup:UpdateBorderVisibility()
|
||||
|
||||
Reference in New Issue
Block a user