From 2ade24cca5a15539440caf8ef0bccc8ab5b184c5 Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Fri, 23 Sep 2022 16:34:34 -0500 Subject: [PATCH] Color Item ID and Level using summary colors (#96) --- RatingBuster.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/RatingBuster.lua b/RatingBuster.lua index 4ef8957..aa42e39 100644 --- a/RatingBuster.lua +++ b/RatingBuster.lua @@ -1621,14 +1621,18 @@ function RatingBuster.ProcessTooltip(tooltip, name, link) if link then local _, _, id = strfind(link, "item:(%d+)") local newLine = "" + local statColor = globalDB.sumStatColor + local valueColor = globalDB.sumValueColor if level and globalDB.showItemLevel then - newLine = newLine..L["ItemLevel: "]..level + newLine = newLine .. statColor:WrapTextInColorCode(L["ItemLevel: "]) + newLine = newLine .. valueColor:WrapTextInColorCode(level) end if id and globalDB.showItemID then if newLine ~= "" then newLine = newLine..", " end - newLine = newLine..L["ItemID: "]..id + newLine = newLine .. statColor:WrapTextInColorCode(L["ItemID: "]) + newLine = newLine .. valueColor:WrapTextInColorCode(id) end if newLine ~= "" then cache[link] = newLine