Go to most recent revision | Show entire file | Details | Blame | View Log
Rev 141 | Rev 142 |
---|---|
Line 440... | Line 440... |
showLootMethod = false, |
showLootMethod = false, |
useTooltipDefaults = true, |
useTooltipDefaults = true, |
bgColor = GameTooltip:GetBackdrop(), |
bgColor = GameTooltip:GetBackdrop(), |
borderColor = {GameTooltip:GetBackdropBorderColor()}, |
borderColor = {GameTooltip:GetBackdropBorderColor()}, |
playSoundOnAward = false, |
playSoundOnAward = false, |
soundFile = nil, |
soundFile = LSM:Fetch("sound", value), |
soundName = LSM:Fetch("sound", value), |
soundName = "None", |
} |
} |
} |
} |
-- Console commands |
-- Console commands |
local slashTable = { |
local slashTable = { |
Line 706... | Line 706... |
-- Register slash options table |
-- Register slash options table |
LibStub("AceConfig-3.0"):RegisterOptionsTable("NeedyGreedyCmds", slashTable, {"ng", "needygreedy"}) |
LibStub("AceConfig-3.0"):RegisterOptionsTable("NeedyGreedyCmds", slashTable, {"ng", "needygreedy"}) |
-- Register the minimap icon |
-- Register the minimap icon |
ngDBIcon:Register("NeedyGreedy", NeedyGreedyLDB, self.db.profile.minimap) |
ngDBIcon:Register("NeedyGreedy", NeedyGreedyLDB, self.db.profile.minimap) |
-- Register some sounds |
|
LSM:Register("sound", "Bells", [[Sound\Spells\ShaysBell.wav]]) |
|
LSM:Register("sound", "Cheer", [[Sound\Event Sounds\OgreEventCheerUnique.wav]]) |
|
end |
end |
function NeedyGreedy:OnEnable() |
function NeedyGreedy:OnEnable() |
self:RegisterEvent("PARTY_MEMBERS_CHANGED") |
self:RegisterEvent("PARTY_MEMBERS_CHANGED") |
self:RegisterEvent("START_LOOT_ROLL") |
self:RegisterEvent("START_LOOT_ROLL") |