1
0
Fork 0

Adjust alignment of tooltip items.

This commit is contained in:
Andrew Tomaka 2011-09-01 03:41:08 -04:00
parent 6e1c9641aa
commit 1621ed588d

View file

@ -219,7 +219,7 @@ local function anchor_OnEnter(self)
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
self.tooltip:SetCell(1, nextColumn, abbreviation, nil, 'LEFT') self.tooltip:SetCell(1, nextColumn, abbreviation, nil, 'CENTER')
nextColumn = nextColumn + 1 nextColumn = nextColumn + 1
end end
@ -236,15 +236,15 @@ local function anchor_OnEnter(self)
else else
valorPointColor = flagColors['green'] valorPointColor = flagColors['green']
end end
self.tooltip:SetCell(characterLine, 2, valorPoints, valorPointColor, 'LEFT') self.tooltip:SetCell(characterLine, 2, valorPoints, valorPointColor, 'RIGHT')
local nextColumn = 3 local nextColumn = 3
for instance,abbreviation in pairs(trackedInstances) do for instance,abbreviation in pairs(trackedInstances) do
if self.db.global[realm][name].lockouts[instance] ~= nil then if self.db.global[realm][name].lockouts[instance] ~= nil then
local defeatedBosses = self.db.global[realm][name].lockouts[instance].defeatedBosses local defeatedBosses = self.db.global[realm][name].lockouts[instance].defeatedBosses
self.tooltip:SetCell(characterLine, nextColumn, defeatedBosses, flagColors['red'], 'LEFT') self.tooltip:SetCell(characterLine, nextColumn, defeatedBosses, flagColors['red'], 'RIGHT')
else else
self.tooltip:SetCell(characterLine, nextColumn, '0', flagColors['green'], 'LEFT') self.tooltip:SetCell(characterLine, nextColumn, '0', flagColors['green'], 'RIGHT')
end end
nextColumn = nextColumn + 1 nextColumn = nextColumn + 1
end end