From 4460dc70a99f6cbaf8551ebc74003b3f8dcd6880 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sun, 20 Jun 2010 15:47:30 -0500 Subject: [PATCH] Localized gem color names --- Locales/enUS/gems.lua | 12 ++++++++++++ WeightsWatcher.lua | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Locales/enUS/gems.lua b/Locales/enUS/gems.lua index a91b2e1..7ec2bfa 100644 --- a/Locales/enUS/gems.lua +++ b/Locales/enUS/gems.lua @@ -570,3 +570,15 @@ ww_gemDisplayNames = { ["Wicked Noble Topaz"] = "Wicked Noble Topaz", ["Wicked Pyrestone"] = "Wicked Pyrestone", } + +ww_gemColorDisplayNames = { + ["blue"] = "Blue", + ["green"] = "Green", + ["meta"] = "Meta", + ["orange"] = "Orange", + ["prismatic"] = "Prismatic", + ["purple"] = "Purple", + ["red"] = "Red", + ["yellow"] = "Yellow", + ["N/A"] = "N/A", +} diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index bb6674c..24f8644 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -654,7 +654,7 @@ function WeightsWatcher.displayItemStats(tooltip, ttname) tooltip:AddLine("Gem Stats:") for _, gems in pairs(itemInfo.gemStats) do for _, gem in ipairs(gems) do - tooltip:AddLine(" " .. ww_gemDisplayNames[gem[2]] .. " (" .. gem[1] .. ")") + tooltip:AddLine(" " .. ww_gemDisplayNames[gem[2]] .. " (" .. ww_gemColorDisplayNames[gem[1]] .. ")") for stat, value in pairs(gem[3]) do tooltip:AddDoubleLine(" " .. stat, value) end @@ -711,10 +711,10 @@ function WeightsWatcher.displayItemStats(tooltip, ttname) for _, gems in ipairs(gemStats) do for i, gem in ipairs(gems) do if #(gems) > 1 then - tooltip:AddDoubleLine(" (Option " .. i .. "/" .. #(gems) .. ") " .. ww_gemDisplayNames[gem[2]] .. " (" .. gem[1] .. ")", " ") + tooltip:AddDoubleLine(" (Option " .. i .. "/" .. #(gems) .. ") " .. ww_gemDisplayNames[gem[2]] .. " (" .. ww_gemColorDisplayNames[gem[1]] .. ")", " ") alternateGemsExist = true else - tooltip:AddDoubleLine(" Using " .. ww_gemDisplayNames[gem[2]] .. " (" .. gem[1] .. ")", " ") + tooltip:AddDoubleLine(" Using " .. ww_gemDisplayNames[gem[2]] .. " (" .. ww_gemColorDisplayNames[gem[1]] .. ")", " ") end if showIdealGemStats then for stat, value in pairs(gem[3]) do -- 1.7.9.5