From a76e70d3d2b60a987beaa4fd94d99a7b11fd9eb9 Mon Sep 17 00:00:00 2001 From: atomaka Date: Mon, 29 Aug 2011 01:17:37 -0400 Subject: [PATCH] Invert color display for Valor Points. --- ChoreTracker.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index d161444..26c10fa 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -30,7 +30,7 @@ local function anchor_OnEnter(self) --create the tooltip header self.tooltip:AddHeader('') local valorPointColumn = self.tooltip:AddColumn('LEFT') - self.tooltip:SetCell(1,1,'Chore') + self.tooltip:SetCell(1,1,'') self.tooltip:SetCell(1,2,'VP') local nextColumn = 3 for instance,abbreviation in pairs(trackedInstances) do @@ -46,9 +46,9 @@ local function anchor_OnEnter(self) local valorPointColor if self.db.global.valorPoints[character] == 980 then - valorPointColor = flagColors['green'] - else valorPointColor = flagColors['red'] + else + valorPointColor = flagColors['green'] end self.tooltip:SetCell(characterLine,2,self.db.global.valorPoints[character],valorPointColor,'LEFT') @@ -100,10 +100,8 @@ function core:OnInitialize() class = 'death knight' end - if not classColors[class] then - classColors[class] = CreateFont('ClassFont' .. class) - classColors[class]:CopyFontObject(GameTooltipText) - end + classColors[class] = CreateFont('ClassFont' .. class) + classColors[class]:CopyFontObject(GameTooltipText) classColors[class]:SetTextColor(color.r,color.g,color.b) end