end |
|
-- Now add item link names |
headerline, _ = self.tooltip:AddLine("") |
for i = 1, nItems do |
local index = report.firstItem + i - 1 |
local text = "" |
local item = nil |
if index <= count then |
local rollID = sorted[index] |
item = items[rollID] |
text= item.link |
if self.db.profile.displayTextLink then |
headerline, _ = self.tooltip:AddLine("") |
for i = 1, nItems do |
local index = report.firstItem + i - 1 |
local text = "" |
local item = nil |
if index <= count then |
local rollID = sorted[index] |
item = items[rollID] |
text= item.link |
end |
self.tooltip:SetCell(headerline, i + 1, text, nil, nil, nil, nil, nil, nil, nil, 60) |
if item then |
self.tooltip:SetCellScript(headerline, i + 1, "OnEnter", function() |
GameTooltip:SetOwner(self.tooltip, "ANCHOR_RIGHT") |
GameTooltip:SetHyperlink(item.link) |
end ) |
self.tooltip:SetCellScript(headerline, i + 1, "OnLeave", function() |
GameTooltip:Hide() |
end ) |
end |
end |
self.tooltip:SetCell(headerline, i + 1, text, nil, nil, nil, nil, nil, nil, nil, 60) |
if item then |
self.tooltip:SetCellScript(headerline, i + 1, "OnEnter", function() |
GameTooltip:SetOwner(self.tooltip, "ANCHOR_RIGHT") |
GameTooltip:SetHyperlink(item.link) |
end ) |
self.tooltip:SetCellScript(headerline, i + 1, "OnLeave", function() |
GameTooltip:Hide() |
end ) |
end |
end |
|
-- Create table with party names and their rolls |