fix: mailbox tooltip

This commit is contained in:
Salikh Gurgenidze
2025-12-27 17:31:41 +04:00
parent 61bb1d9d8e
commit 6ca33c1c9f
5 changed files with 375 additions and 160 deletions
+113
View File
@@ -1,6 +1,82 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<!-- Mailbox Row Template -->
<Frame name="Guda_MailboxRowTemplate" virtual="true">
<Size>
<AbsDimension x="360" y="50"/>
</Size>
<Layers>
<Layer level="BACKGROUND">
<Texture name="$parent_Background">
<Anchors>
<Anchor point="TOPLEFT"/>
<Anchor point="BOTTOMRIGHT"/>
</Anchors>
<Color r="1" g="1" b="1" a="0.05"/>
</Texture>
</Layer>
<Layer level="ARTWORK">
<FontString name="$parent_Sender" inherits="GameFontNormal" justifyH="LEFT">
<Size>
<AbsDimension x="140" y="16"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="60" y="-8"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parent_Subject" inherits="GameFontHighlightSmall" justifyH="LEFT">
<Size>
<AbsDimension x="280" y="14"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent_Sender" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="0" y="-2"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
<FontString name="$parent_ExpireTime" inherits="GameFontDisableSmall" justifyH="RIGHT">
<Size>
<AbsDimension x="100" y="12"/>
</Size>
<Anchors>
<Anchor point="TOPRIGHT">
<Offset>
<AbsDimension x="-10" y="-8"/>
</Offset>
</Anchor>
</Anchors>
</FontString>
</Layer>
</Layers>
<Frames>
<Button name="$parent_ItemButton" inherits="Guda_ItemButtonTemplate">
<Anchors>
<Anchor point="LEFT" relativeTo="$parent" relativePoint="LEFT">
<Offset>
<AbsDimension x="10" y="0"/>
</Offset>
</Anchor>
</Anchors>
</Button>
<Frame name="$parent_MoneyFrame" inherits="SmallMoneyFrameTemplate">
<Anchors>
<Anchor point="BOTTOMRIGHT">
<Offset>
<AbsDimension x="-10" y="8"/>
</Offset>
</Anchor>
</Anchors>
</Frame>
</Frames>
</Frame>
<!-- Mailbox Frame -->
<Frame name="Guda_MailboxFrame" toplevel="true" movable="true" enableMouse="true" hidden="true" parent="UIParent">
<Size>
@@ -224,6 +300,43 @@
</Anchor>
</Anchors>
</Frame>
<!-- Pagination -->
<Button name="$parent_PrevPageButton" inherits="UIPanelButtonTemplate" text="Prev">
<Size>
<AbsDimension x="60" y="22"/>
</Size>
<Anchors>
<Anchor point="BOTTOMLEFT">
<Offset>
<AbsDimension x="120" y="10"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Guda.Modules.MailboxFrame:PrevPage()
</OnClick>
</Scripts>
</Button>
<Button name="$parent_NextPageButton" inherits="UIPanelButtonTemplate" text="Next">
<Size>
<AbsDimension x="60" y="22"/>
</Size>
<Anchors>
<Anchor point="BOTTOMRIGHT" relativeTo="$parent_MoneyFrame" relativePoint="BOTTOMLEFT">
<Offset>
<AbsDimension x="-10" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
Guda.Modules.MailboxFrame:NextPage()
</OnClick>
</Scripts>
</Button>
</Frames>
<Scripts>