|
-- Create table with party names and their rolls |
for i, name in ipairs(players) do |
local rollTable = {} |
table.insert(rollTable, self:ColorizeName(name)) |
local partyLine = tooltip:AddLine("") |
tooltip:SetCell(partyLine, 1, self:ColorizeName(name) .. " " .. (self.db.profile.displayIcons and BLANK_ICON or ""), nil, "LEFT", nil, nil, nil, nil, nil, 100) |
|
for i = 1, nItems do |
local index = report.firstItem + i - 1 |
if index <= count then |
local rollID = sorted[index] |
local item = items[rollID] |
table.insert(rollTable, self:ChoiceText(item.choices[name]) .. self:RollText(item.rolls[name])) |
tooltip:SetCell(partyLine, i + 1, self:ChoiceText(item.choices[name]) .. self:RollText(item.rolls[name]), nil, "LEFT", nil, nil, nil, nil, nil, 60) |
end |
end |
|
tooltip:AddLine(unpack(rollTable)) |
end |
|
tooltip:AddSeparator() |