WoWInterface SVN NeedyGreedy

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 216 to Rev 217
    Reverse comparison

Rev 216 → Rev 217

trunk/NeedyGreedy.lua
51,7 → 51,7
end
end,
})
local ngDBIcon = LibStub("LibDBIcon-1.0")
local ngDBIcon = LibStub("LibDBIconMod-1.0")
 
-- Set up configuration window
local options = {
161,11 → 161,20
name = L["Minimap Icon"],
desc = L["Toggle the display of the minimap icon"],
type = "toggle",
order = 99,
order = 98,
get = "GetHideMinimapIcon",
set = "SetHideMinimapIcon",
width = "full"
},
lockMinimapIcon = {
name = L["Lock Minimap Icon"],
desc = L["Lock the position of the minimap icon"],
type = "toggle",
order = 99,
get = "GetLockMinimapIcon",
set = "SetLockMinimapIcon",
width = "full"
},
showGroupOnly = {
name = L["Hide Non-Members"],
desc = L["Only display the names of members currently in your party"],
511,6 → 520,7
maxDebugEvents = 100,
maxHeight = 280,
scrollStep = 20,
lockMinimapIcon = false,
}
}
 
864,7 → 874,7
end
 
self:UpdatePartyLootMethodText()
 
self:UpdateLockStatus()
self:SetShowLootSpam()
end
 
1601,6 → 1611,16
end
end
 
function NeedyGreedy:GetLockMinimapIcon(info)
return self.db.profile.minimap.lock
end
 
function NeedyGreedy:SetLockMinimapIcon(info, value)
self.db.profile.minimap.lock = value
 
self:UpdateLockStatus()
end
 
function NeedyGreedy:GetFilterLootMsgs(info)
return self.db.profile.filterLootMsgs
end
2432,6 → 2452,14
end
 
 
--
function NeedyGreedy:UpdateLockStatus()
if self.db.profile.minimap.lock then
ngDBIcon:Lock("NeedyGreedy")
else
ngDBIcon:Unlock("NeedyGreedy")
end
end
 
-- Slash Commands
function NeedyGreedy:SlashHide()
trunk/Localization/enUS.lua
92,5 → 92,7
L["Max Debug Messages"] = true
L["Maximum Height"] = true
L["Maximum height of the display window"] = true
L["Lock Minimap Icon"] = true
L["Lock the position of the minimap icon"] = true
 
end
trunk/libs/LibDBIcon-1.0/LibDBIcon-1.0.lua
32,7 → 32,7
-- and cleaned up a lot so that it no longer sucks.
--
 
local DBICON10 = "LibDBIcon-1.0"
local DBICON10 = "LibDBIconMod-1.0"
local DBICON10_MINOR = tonumber(("$Rev: 24 $"):match("(%d+)"))
if not LibStub then error(DBICON10 .. " requires LibStub.") end
local ldb = LibStub("LibDataBroker-1.1", true)
303,3 → 303,12
end
end
 
function lib:Lock(name)
lib.objects[name]:SetScript("OnDragStart", nil)
lib.objects[name]:SetScript("OnDragStop", nil)
end
 
function lib:Unlock(name)
lib.objects[name]:SetScript("OnDragStart", onDragStart)
lib.objects[name]:SetScript("OnDragStop", onDragStop)
end
\ No newline at end of file