fix: bagslot border
This commit is contained in:
@@ -1338,6 +1338,22 @@ end
|
|||||||
|
|
||||||
-- OnLoad handler for bag slot buttons
|
-- OnLoad handler for bag slot buttons
|
||||||
function Guda_BagSlot_OnLoad(button, bagID)
|
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
|
-- Set up the button with proper ID
|
||||||
-- For bags 1-4, we need to get the inventory slot ID
|
-- For bags 1-4, we need to get the inventory slot ID
|
||||||
if bagID == 0 then
|
if bagID == 0 then
|
||||||
|
|||||||
+2
-2
@@ -281,7 +281,7 @@
|
|||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="LEFT">
|
<Anchor point="LEFT">
|
||||||
<Offset>
|
<Offset>
|
||||||
<AbsDimension x="15" y="0"/>
|
<AbsDimension x="13" y="0"/>
|
||||||
</Offset>
|
</Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
@@ -405,7 +405,7 @@
|
|||||||
<Anchors>
|
<Anchors>
|
||||||
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_BagSlot4">
|
<Anchor point="LEFT" relativePoint="RIGHT" relativeTo="$parent_BagSlot4">
|
||||||
<Offset>
|
<Offset>
|
||||||
<AbsDimension x="6" y="0"/>
|
<AbsDimension x="2" y="0"/>
|
||||||
</Offset>
|
</Offset>
|
||||||
</Anchor>
|
</Anchor>
|
||||||
</Anchors>
|
</Anchors>
|
||||||
|
|||||||
Reference in New Issue
Block a user