mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update TradeSkill skin
This commit is contained in:
@@ -7,6 +7,7 @@ local _G = _G
|
||||
local unpack = unpack
|
||||
local select = select
|
||||
local find = string.find
|
||||
local split = string.split
|
||||
--WoW API / Variables
|
||||
local GetItemInfo = GetItemInfo
|
||||
local GetItemQualityColor = GetItemQualityColor
|
||||
@@ -145,8 +146,8 @@ local function LoadSkin()
|
||||
local skillLink = GetTradeSkillItemLink(id)
|
||||
if skillLink then
|
||||
TradeSkillRequirementLabel:SetTextColor(1, 0.80, 0.10)
|
||||
local skillID = select(3, find(skillLink, "item:(%d+)"))
|
||||
if skillID then
|
||||
local skillString = select(3, find(skillLink, "|H(.+)|h"))
|
||||
local skillID = select(2, split(":", skillString))
|
||||
local quality = select(3, GetItemInfo(skillID))
|
||||
if quality and quality > 1 then
|
||||
TradeSkillSkillIcon:SetBackdropBorderColor(GetItemQualityColor(quality))
|
||||
@@ -156,7 +157,6 @@ local function LoadSkin()
|
||||
TradeSkillSkillName:SetTextColor(1, 1, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local numReagents = GetTradeSkillNumReagents(id)
|
||||
for i = 1, numReagents, 1 do
|
||||
@@ -166,8 +166,8 @@ local function LoadSkin()
|
||||
local name = _G["TradeSkillReagent" .. i .. "Name"]
|
||||
|
||||
if reagentLink then
|
||||
local reagentID = select(3, find(reagentLink, "item:(%d+)"))
|
||||
if reagentID then
|
||||
local reagentString = select(3, find(reagentLink, "|H(.+)|h"))
|
||||
local reagentID = select(2, split(":", reagentString))
|
||||
local quality = select(3, GetItemInfo(reagentID))
|
||||
if quality and quality > 1 then
|
||||
icon.backdrop:SetBackdropBorderColor(GetItemQualityColor(quality))
|
||||
@@ -181,7 +181,6 @@ local function LoadSkin()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user