fix: bagslot border

This commit is contained in:
Salikh Gurgenidze
2025-11-17 13:53:48 +04:00
parent 1d65662327
commit 43c192a80e
2 changed files with 18 additions and 2 deletions
+16
View File
@@ -1338,6 +1338,22 @@ end
-- OnLoad handler for bag slot buttons
function Guda_BagSlot_OnLoad(button, bagID)
-- Hide borders from ItemButtonTemplate
local buttonName = button:GetName()
-- Hide the normal texture border
local normalTexture = getglobal(buttonName .. "NormalTexture")
if normalTexture then
normalTexture:SetTexture(nil)
normalTexture:Hide()
end
-- Hide icon border
local iconBorder = getglobal(buttonName .. "IconBorder")
if iconBorder then
iconBorder:Hide()
end
-- Set up the button with proper ID
-- For bags 1-4, we need to get the inventory slot ID
if bagID == 0 then
+2 -2
View File
@@ -281,7 +281,7 @@
<Anchors>
<Anchor point="LEFT">
<Offset>
<AbsDimension x="15" y="0"/>
<AbsDimension x="13" y="0"/>
</Offset>
</Anchor>
</Anchors>
@@ -405,7 +405,7 @@
<Anchors>
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_BagSlot4">
<Offset>
<AbsDimension x="6" y="0"/>
<AbsDimension x="2" y="0"/>
</Offset>
</Anchor>
</Anchors>