1
0
Fork 0

Invert color display for Valor Points.

This commit is contained in:
Andrew Tomaka 2011-08-29 01:17:37 -04:00
parent 282517de4e
commit a76e70d3d2

View file

@ -30,7 +30,7 @@ local function anchor_OnEnter(self)
--create the tooltip header --create the tooltip header
self.tooltip:AddHeader('') self.tooltip:AddHeader('')
local valorPointColumn = self.tooltip:AddColumn('LEFT') local valorPointColumn = self.tooltip:AddColumn('LEFT')
self.tooltip:SetCell(1,1,'Chore') self.tooltip:SetCell(1,1,'')
self.tooltip:SetCell(1,2,'VP') self.tooltip:SetCell(1,2,'VP')
local nextColumn = 3 local nextColumn = 3
for instance,abbreviation in pairs(trackedInstances) do for instance,abbreviation in pairs(trackedInstances) do
@ -46,9 +46,9 @@ local function anchor_OnEnter(self)
local valorPointColor local valorPointColor
if self.db.global.valorPoints[character] == 980 then if self.db.global.valorPoints[character] == 980 then
valorPointColor = flagColors['green']
else
valorPointColor = flagColors['red'] valorPointColor = flagColors['red']
else
valorPointColor = flagColors['green']
end end
self.tooltip:SetCell(characterLine,2,self.db.global.valorPoints[character],valorPointColor,'LEFT') self.tooltip:SetCell(characterLine,2,self.db.global.valorPoints[character],valorPointColor,'LEFT')
@ -100,10 +100,8 @@ function core:OnInitialize()
class = 'death knight' class = 'death knight'
end end
if not classColors[class] then classColors[class] = CreateFont('ClassFont' .. class)
classColors[class] = CreateFont('ClassFont' .. class) classColors[class]:CopyFontObject(GameTooltipText)
classColors[class]:CopyFontObject(GameTooltipText)
end
classColors[class]:SetTextColor(color.r,color.g,color.b) classColors[class]:SetTextColor(color.r,color.g,color.b)
end end