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