WoWInterface SVN NeedyGreedy

Compare Revisions

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

Rev 37 → Rev 36

NeedyGreedy.lua
37,7 → 37,6
 
local report = {}
local items = {}
local nameList = {}
 
-- Set up configuration window
local options = {
142,14 → 141,6
get = "GetHideInCombat",
set = "SetHideInCombat",
},
showGroupOnly = {
name = L["Hide Non-Members"],
desc = L["Only display the names of members currently in your party"],
type = "toggle",
order = 40,
get = "GetShowGroupOnly",
set = "SetShowGroupOnly",
},
},
},
}
169,7 → 160,6
filterLootMsgs = false,
onlyShowInParty = false,
hideInCombat = false,
showGroupOnly = true,
}
}
 
611,7 → 601,6
 
function NeedyGreedy:ClearItems()
items = {}
nameList = {}
self:UpdateReport()
end
 
644,30 → 633,17
for i = 1,MAX_RAID_MEMBERS do
name = GetRaidRosterInfo(i)
if name then
if not nameList[name] then nameList[name] = name end
table.insert(list, name)
end
end
else
for _, unit in ipairs({"player", "party1", "party2", "party3", "party4"}) do
local name = UnitName(unit)
if name then
if not nameList[name] then nameList[name] = name end
table.insert(list, name)
end
end
end
 
if not self.db.profile.showGroupOnly then
for _, item in ipairs(items) do
for name, _ in pairs(item.choices) do
if not nameList[name] then nameList[name] = name end
end
end
end
 
for name, _ in pairs(nameList) do
table.insert(list, name)
end
 
table.sort(list)
return list
end
764,7 → 740,6
for rollid, record in pairs(items) do
if record.received > 0 and now - record.received >= self.db.profile.expiry * 60 then
items[rollid] = nil
nameList = {}
update = true
end
end
895,17 → 870,8
self:RefreshTooltip()
end
 
function NeedyGreedy:GetShowGroupOnly(info)
return self.db.profile.showGroupOnly
end
 
function NeedyGreedy:SetShowGroupOnly(info, showGroupOnly)
self.db.profile.showGroupOnly = showGroupOnly
self:RefreshTooltip()
end
 
 
 
-- Detachable QTip Frames
local LibQTip = LibStub('LibQTip-1.0')
 
1250,6 → 1216,7
 
 
-- Chat filter functions
local filter = function() return true end
local FILTER_CHAT_LOOT_MSGS = {
--LOOT_ROLL_ALL_PASSED,
LOOT_ROLL_DISENCHANT,
1333,7 → 1300,7
assigned = "",
received = 0,
choices = {Matsuri = "disenchant", Lubov = "greed"},
rolls = {Matsuri = 61, Lubov = 98}
rolls = {Matsuri = "- 61", Lubov = "- 98"}
}
items[3] = {
texture = "Interface\\Icons\\INV_Weapon_ShortBlade_06",
1341,7 → 1308,7
assigned = "Matsuri",
received = GetTime(),
choices = {Shalii = "pass", Matsuri = "need"},
rolls = {Shalii = "", Matsuri = 42}
rolls = {Shalii = "", Matsuri = " - 42"}
}
self:UpdateReport()
end
Localization/enUS.lua
36,7 → 36,5
L["You are not in a party"] = true
L["Hide in combat"] = true
L["Only display the roll window when not in combat"] = true
L["Hide Non-Members"] = true
L["Only display the names of members currently in your party"] = true
 
end