Quantcast

Fix icon border on merchant frame

Merathilis [03-29-17 - 20:48]
Fix icon border on merchant frame
Filename
ElvUI_SLE/skins/blizzard/merchant.lua
diff --git a/ElvUI_SLE/skins/blizzard/merchant.lua b/ElvUI_SLE/skins/blizzard/merchant.lua
index 9b16aa2..255eb0a 100644
--- a/ElvUI_SLE/skins/blizzard/merchant.lua
+++ b/ElvUI_SLE/skins/blizzard/merchant.lua
@@ -24,21 +24,24 @@ local IgnoreCurrency = {
 }

 local function SkinVendorItems(i)
-	local b = _G["MerchantItem"..i.."ItemButton"]
-	local t = _G["MerchantItem"..i.."ItemButtonIconTexture"]
-	local item_bar = _G["MerchantItem"..i]
-	item_bar:StripTextures(true)
-	item_bar:CreateBackdrop("Default")
+	local button = _G["MerchantItem"..i.."ItemButton"]
+	local icon = button.icon
+	local iconBorder = button.IconBorder
+	local item = _G["MerchantItem"..i]
+	item:StripTextures(true)
+	item:CreateBackdrop("Default")

-	b:StripTextures()
-	b:StyleButton(false)
-	b:SetTemplate("Default", true)
-	b:Point("TOPLEFT", item_bar, "TOPLEFT", 4, -4)
-	t:SetTexCoord(T.unpack(E.TexCoords))
-	t:SetInside()
+	button:StripTextures()
+	button:StyleButton(false)
+	button:SetTemplate("Default", true)
+	button:Point("TOPLEFT", item, "TOPLEFT", 4, -4)
+	icon:SetTexCoord(unpack(E.TexCoords))
+	icon:SetInside()
+	iconBorder:SetAlpha(0)

 	_G["MerchantItem"..i.."MoneyFrame"]:ClearAllPoints()
-	_G["MerchantItem"..i.."MoneyFrame"]:Point("BOTTOMLEFT", b, "BOTTOMRIGHT", 3, 0)
+	_G["MerchantItem"..i.."MoneyFrame"]:Point("BOTTOMLEFT", button, "BOTTOMRIGHT", 3, 0)
+	MerchantBuyBackItemItemButton.IconBorder:SetAlpha(0)
 end

 local function UpdateButtonsPositions(isBuyBack)