mailbox frame styles

This commit is contained in:
Salikh Gurgenidze
2025-12-27 20:15:41 +04:00
parent 839118841e
commit 0c2954d230
2 changed files with 12 additions and 1 deletions
+11
View File
@@ -192,6 +192,12 @@ function MailboxFrame:DisplayItems(items, charFullName, totalMails)
itemButton.isMail = true
itemButton.mailIndex = mail.mailIndex
itemButton.mailItemIndex = mail.itemIndex or 1
-- Force left alignment in case template or other code changed anchors
if itemButton then
itemButton:ClearAllPoints()
itemButton:SetPoint("TOPLEFT", row, "TOPLEFT", 10, -8)
end
if mail.item and (mail.item.texture or mail.item.link) then
Guda_ItemButton_SetItem(itemButton, nil, nil, mail.item, false, charFullName, true, true)
@@ -223,6 +229,11 @@ function MailboxFrame:DisplayItems(items, charFullName, totalMails)
-- Row Money Frame
local moneyFrame = getglobal(row:GetName() .. "_MoneyFrame")
if moneyFrame then
-- Force left alignment for the money frame
moneyFrame:ClearAllPoints()
moneyFrame:SetPoint("BOTTOMLEFT", row, "BOTTOMLEFT", 10, 8)
end
if (mail.money or 0) > 0 then
MoneyFrame_Update(moneyFrame:GetName(), mail.money)
moneyFrame:Show()
+1 -1
View File
@@ -4,7 +4,7 @@
<!-- Mailbox Row Template -->
<Frame name="Guda_MailboxRowTemplate" virtual="true">
<Size>
<AbsDimension x="360" y="50"/>
<AbsDimension x="380" y="50"/>
</Size>
<Layers>
<Layer level="BACKGROUND">