/
end |
end, |
}) |
local ngDBIcon = LibStub("LibDBIcon-1.0") |
local ngDBIcon = LibStub("LibDBIconMod-1.0") |
-- Set up configuration window |
local options = { |
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"], |
maxDebugEvents = 100, |
maxHeight = 280, |
scrollStep = 20, |
lockMinimapIcon = false, |
} |
} |
end |
self:UpdatePartyLootMethodText() |
self:UpdateLockStatus() |
self:SetShowLootSpam() |
end |
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 |
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() |
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 |
-- 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) |
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 |