From 1a54f4785aefc1cc423f56d7b254eed61a2d1b9b Mon Sep 17 00:00:00 2001 From: Darthpred Date: Wed, 17 Aug 2016 08:34:14 +0300 Subject: [PATCH] Change the way highlight texture is created for inspect. this fixes #278 --- .../modules/Armory/InspectArmory/InspectArmory.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua index 998b60d..f9bb561 100644 --- a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua +++ b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua @@ -712,7 +712,13 @@ function IA:CreateInspectFrame() Slot.Highlight = Slot:CreateTexture('Frame', nil, self) Slot.Highlight:SetInside() - Slot.Highlight:SetTexture(1, 1, 1, 0.3) + Slot.Highlight:SetTexture("Interface\\AddOns\\ElvUI_SLE\\modules\\Armory\\Media\\Textures\\Gradation") + if Slot.Direction == 'LEFT' then + Slot.Highlight:SetTexCoord(0, 1, 0, 1) + else + Slot.Highlight:SetTexCoord(1, 0, 0, 1) + end + Slot.Highlight:SetAlpha(0.8) Slot:SetHighlightTexture(Slot.Highlight) KF:TextSetting(Slot, nil, { Tag = 'ItemLevel', FontSize = 10, FontStyle = 'OUTLINE', }, 'TOP', Slot, 0, -3) -- 1.7.9.5