fix: bag main functionality

This commit is contained in:
Salikh Gurgenidze
2025-11-18 21:43:39 +04:00
parent d3a4ad9923
commit 44b20f2132
2 changed files with 39 additions and 7 deletions
+35 -2
View File
@@ -273,8 +273,8 @@
</Scripts>
<Frames>
<!-- Bag Slot 1 -->
<Button name="$parent_BagSlot1" inherits="ItemButtonTemplate" movable="true">
<!-- Main Bag (Backpack) Slot 0 -->
<Button name="$parent_BagSlot0" inherits="ItemButtonTemplate">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
@@ -285,6 +285,39 @@
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
Guda_BagSlot_OnLoad(this, 0)
</OnLoad>
<OnClick>
Guda_BagSlot_OnClick(this, 0)
</OnClick>
<OnEnter>
Guda_BagSlot_OnEnter(this, 0)
Guda_BagFrame_HighlightBagSlots(0)
</OnEnter>
<OnLeave>
GameTooltip:Hide()
Guda_BagFrame_ClearHighlightedSlots()
</OnLeave>
<OnEvent>
Guda_BagSlot_OnEvent(this, event, arg1)
</OnEvent>
</Scripts>
</Button>
<!-- Bag Slot 1 -->
<Button name="$parent_BagSlot1" inherits="ItemButtonTemplate" movable="true">
<Size>
<AbsDimension x="24" y="24"/>
</Size>
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_BagSlot0">
<Offset>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
this:RegisterForDrag("LeftButton")