WoWInterface SVN NeedyGreedy

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 16 to Rev 15
    Reverse comparison

Rev 16 → Rev 15

NeedyGreedy.lua
83,14 → 83,7
type = "toggle",
get = "GetDetachedTooltip",
set = "SetDetachedTooltip",
},
displayTextLink = {
name = "Display Item Names",
desc = "Show the item names as a header",
type = "toggle",
get = "GetDisplayTextLink",
set = "SetDisplayTextLink",
},
}
}
}
 
101,7 → 94,6
quality = ITEM_QUALITY_EPIC,
displayIcons = true,
detachedTooltip = false,
displayTextLink = false,
}
}
 
585,17 → 577,8
end
end
 
function NeedyGreedy:GetDisplayTextLink(info)
return self.db.profile.displayTextLink
end
 
function NeedyGreedy:SetDisplayTextLink(info, displayTextLink)
self.db.profile.displayTextLink = displayTextLink
self:UpdateReport()
end
 
 
 
-- Detachable QTip Frames
local LibQTip = LibStub('LibQTip-1.0')
 
708,28 → 691,26
end
 
-- Now add item link names
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
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
 
-- Create table with party names and their rolls