60 lines
2.0 KiB
XML
60 lines
2.0 KiB
XML
<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/">
|
|
|
|
<!-- Item Button Template -->
|
|
<Button name="Guda_ItemButtonTemplate" virtual="true" inherits="ItemButtonTemplate">
|
|
<Size>
|
|
<AbsDimension x="37" y="37"/>
|
|
</Size>
|
|
|
|
<Layers>
|
|
<!-- Empty slot background texture (classic bag pattern) -->
|
|
<Layer level="BACKGROUND">
|
|
<Texture name="$parent_EmptySlotBg" file="Interface\Buttons\UI-EmptySlot" hidden="false">
|
|
<Anchors>
|
|
<Anchor point="TOPLEFT"/>
|
|
<Anchor point="BOTTOMRIGHT"/>
|
|
</Anchors>
|
|
</Texture>
|
|
</Layer>
|
|
|
|
|
|
<!-- Item count -->
|
|
<Layer level="OVERLAY">
|
|
<FontString name="$parent_Count" inherits="NumberFontNormal" justifyH="RIGHT">
|
|
<Anchors>
|
|
<Anchor point="BOTTOMRIGHT">
|
|
<Offset>
|
|
<AbsDimension x="-8" y="8"/>
|
|
</Offset>
|
|
</Anchor>
|
|
</Anchors>
|
|
</FontString>
|
|
</Layer>
|
|
</Layers>
|
|
|
|
<Scripts>
|
|
<OnLoad>
|
|
Guda_ItemButton_OnLoad(this)
|
|
this:RegisterForDrag("LeftButton")
|
|
this:RegisterForClicks("LeftButtonUp", "RightButtonUp")
|
|
</OnLoad>
|
|
<OnEnter>
|
|
Guda_ItemButton_OnEnter(this)
|
|
</OnEnter>
|
|
<OnLeave>
|
|
Guda_ItemButton_OnLeave(this)
|
|
</OnLeave>
|
|
<OnClick>
|
|
Guda_ItemButton_OnClick(this, arg1)
|
|
</OnClick>
|
|
<OnDragStart>
|
|
Guda_ItemButton_OnDragStart(this, arg1)
|
|
</OnDragStart>
|
|
<OnReceiveDrag>
|
|
Guda_ItemButton_OnReceiveDrag(this)
|
|
</OnReceiveDrag>
|
|
</Scripts>
|
|
</Button>
|
|
|
|
</Ui>
|