WoWInterface SVN NeedyGreedy

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 56 to Rev 55
    Reverse comparison

Rev 56 → Rev 55

NeedyGreedy.lua
943,6 → 943,7
 
-- Add two columns for left and right buttons if detached
if self.db.profile.detachedTooltip then
self.detachedTooltip:AddColumn("RIGHT")
self.detachedTooltip:AddColumn("LEFT")
end
 
1155,13 → 1156,13
local count = self:CountItems()
 
local lineNum, _ = tooltip:AddLine("")
local colNum = nItems + 1
local colNum = nItems + 2
 
if report.firstItem > 1 then
tooltip:SetCell(lineNum, colNum, PAGER_ICONS.leftUp, nil, "RIGHT")
tooltip:SetCell(lineNum, colNum, PAGER_ICONS.leftUp)
tooltip:SetCellScript(lineNum, colNum, "OnMouseUp", function() self:PageLeft() end)
else
tooltip:SetCell(lineNum, colNum, PAGER_ICONS.leftDisabled, nil, "RIGHT")
tooltip:SetCell(lineNum, colNum, PAGER_ICONS.leftDisabled)
end
 
if report.firstItem + nItems - 1 < count then
1173,10 → 1174,10
 
-- Set the page # text
local pageText = ""
if nItems == 1 and count > 0 then
if nItems == 1 then
pageText = tostring(report.firstItem)
elseif count == 0 then
pageText = ""
pageText = L["None"]
elseif count == 1 or report.firstItem == count then
pageText = string.format(L["%d of %d"], report.firstItem, count)
else
1187,7 → 1188,7
pageText = string.format(L["%d-%d of %d"], report.firstItem, lastitem, count)
end
 
tooltip:SetCell(lineNum, colNum - 1, yC .. pageText, nil, "RIGHT")
tooltip:SetCell(lineNum, colNum - 1, yC .. pageText)
end
 
function NeedyGreedy:AddInfoText(tooltip)