WoWInterface SVN NeedyGreedy

Compare Revisions

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

Rev 15 → Rev 16

NeedyGreedy.lua
83,7 → 83,14
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",
},
}
}
 
94,6 → 101,7
quality = ITEM_QUALITY_EPIC,
displayIcons = true,
detachedTooltip = false,
displayTextLink = false,
}
}
 
577,8 → 585,17
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')
 
691,26 → 708,28
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