From 43c192a80e57e6b2805e4102d627c0d2e526e1cd Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Mon, 17 Nov 2025 13:53:48 +0400 Subject: [PATCH] fix: bagslot border --- UI/BagFrame.lua | 16 ++++++++++++++++ UI/BagFrame.xml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/UI/BagFrame.lua b/UI/BagFrame.lua index 879c7ac..cd4f7c0 100644 --- a/UI/BagFrame.lua +++ b/UI/BagFrame.lua @@ -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 diff --git a/UI/BagFrame.xml b/UI/BagFrame.xml index 10b8066..26f1db2 100644 --- a/UI/BagFrame.xml +++ b/UI/BagFrame.xml @@ -281,7 +281,7 @@ - + @@ -405,7 +405,7 @@ - +