Quantcast

added class name to rightPanel's header and the tooltip

Paul Spears [10-29-09 - 21:01]
added class name to rightPanel's header and the tooltip
Filename
WeightsWatcher.lua
config.lua
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index 63f6452..2220704 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -209,7 +209,7 @@ function WeightsWatcher:displayItemStats(tooltip, ttname)
 				if ww_vars.weightsList[class] then
 					for _, weight in pairs(ww_charVars.activeWeights[class]) do
 						if ww_vars.weightsList[class][weight] then
-							tooltip:AddDoubleLine("  " .. weight, string.format("%.3f", ww_weightCache[class][weight][link]))
+							tooltip:AddDoubleLine("  " .. weight .. " - " .. classNames[class], string.format("%.3f", ww_weightCache[class][weight][link]))
 						end
 					end
 				end
@@ -224,7 +224,7 @@ function WeightsWatcher:displayItemStats(tooltip, ttname)
 						if ww_vars.weightsList[class] then
 							for _, weight in pairs(ww_charVars.activeWeights[class]) do
 								if ww_vars.weightsList[class][weight] then
-									tooltip:AddDoubleLine("  " .. weight, string.format("%.3f", ww_weightIdealCache[class][weight][bareLink].score))
+									tooltip:AddDoubleLine("  " .. weight .. " - " .. classNames[class], string.format("%.3f", ww_weightIdealCache[class][weight][bareLink].score))
 									if keyDetectors[ww_vars.options.tooltip.showIdealGems]() then
 										gemStats = ww_weightIdealCache[class][weight][bareLink].gemStats
 										for _, gem in ipairs(gemStats) do
diff --git a/config.lua b/config.lua
index 8b36854..8e7d946 100644
--- a/config.lua
+++ b/config.lua
@@ -226,7 +226,7 @@ function configSelectWeight(weightFrame)
 		end
 	end

-	ww_config.rightPanel.header:SetText(weightFrame.name)
+	ww_config.rightPanel.header:SetText(weightFrame.category.name .. " - " .. weightFrame.name)
 	ww_config.rightPanel:Show()
 end