Change the way highlight texture is created for inspect. this fixes #278
Darthpred [08-17-16 - 05:34]
Change the way highlight texture is created for inspect. this fixes #278
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)