WoWInterface SVN NeedyGreedy

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 38 to Rev 37
    Reverse comparison

Rev 38 → Rev 37

NeedyGreedy.lua
303,8 → 303,8
ACD:AddToBlizOptions("NeedyGreedy", L["Profile"], "NeedyGreedy", "profile")
self:RegisterChatCommand("needygreedy", function() InterfaceOptionsFrame_OpenToCategory("NeedyGreedy") end)
self:RegisterChatCommand("ng", function() InterfaceOptionsFrame_OpenToCategory("NeedyGreedy") end)
self:RegisterChatCommand("ngt", "TestItemList")
self.items = items
-- self:RegisterChatCommand("ngt", "TestItemList")
-- self.items = items
 
-- Register the minimap icon
ngDBIcon:Register("NeedyGreedy", NeedyGreedyLDB, self.db.profile.minimap)
356,7 → 356,6
end
 
function NeedyGreedy:PARTY_MEMBERS_CHANGED()
wipe(nameList)
self:RefreshTooltip()
end
 
611,8 → 610,8
end
 
function NeedyGreedy:ClearItems()
wipe(items)
wipe(nameList)
items = {}
nameList = {}
self:UpdateReport()
end
 
645,14 → 644,14
for i = 1,MAX_RAID_MEMBERS do
name = GetRaidRosterInfo(i)
if name then
if not (nameList[name]) and (name ~= UNKNKOWN) then nameList[name] = name end
if not nameList[name] then nameList[name] = name end
end
end
else
for _, unit in ipairs({"player", "party1", "party2", "party3", "party4"}) do
local name = UnitName(unit)
if name then
if not (nameList[name]) and (name ~= UNKNKOWN) then nameList[name] = name end
if not nameList[name] then nameList[name] = name end
end
end
end
765,7 → 764,7
for rollid, record in pairs(items) do
if record.received > 0 and now - record.received >= self.db.profile.expiry * 60 then
items[rollid] = nil
wipte(nameList)
nameList = {}
update = true
end
end
1318,10 → 1317,7
 
 
-- Unit tests
function NeedyGreedy:SetItems(itemList)
items = itemList
end
 
--[[
function NeedyGreedy:TestItemList()
items[1] = {
texture = "Interface\\Icons\\INV_Weapon_ShortBlade_04",