WoWInterface SVN NeedyGreedy

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 188 to Rev 189
    Reverse comparison

Rev 188 → Rev 189

NeedyGreedy.lua
417,6 → 417,16
get = "GetToggleDebug",
set = "SetToggleDebug",
},
maxEvents = {
name = L["Max Debug Messages"],
type = "range",
order = 111,
min = 10,
max = 500,
step = 10,
get = "GetMaxEvents",
set = "SetMaxEvents"
},
exportDebugLog = {
name = L["Debug Log"],
type = "input",
478,6 → 488,7
soundFile = LSM:Fetch("sound", value),
soundName = "None",
debugStatus = false,
maxDebugEvents = 100,
}
}
 
1781,6 → 1792,14
self.db.profile.debugStatus = value
end
 
function NeedyGreedy:GetMaxEvents(info)
return self.db.profile.maxDebugEvents
end
 
function NeedyGreedy:SetMaxEvents(info, value)
self.db.profile.maxDebugEvents = value
end
 
function NeedyGreedy:GetDebugLog()
local dumpString = ""
 
2465,14 → 2484,14
argString = ""
for index, detail in ipairs(event) do
if index == 1 then
dumpString = dumpString .. " \"" .. detail .. "\" = "
dumpString = dumpString .. " \{\"" .. detail .. "\", "
else
-- Convert value to a pretty format
argString = argString .. cleanvalue(detail) .. ","
end
end
 
dumpString = dumpString .. argString .. "\n"
dumpString = dumpString .. argString .. "\},\n"
end
 
dumpString = dumpString .. "}"
2484,7 → 2503,7
if not eventTable then return end
 
table.insert(EVENT_LOG, eventTable)
if #EVENT_LOG > 100 then
if #EVENT_LOG > self.db.profile.maxDebugEvents then
table.remove(EVENT_LOG, 1)
end
end
Localization/enUS.lua
89,4 → 89,6
L["Show Debugging Messages"] = true
L["Debug Log"] = true
L["Clear Debug Log"] = true
L["Max Debug Messages"] = true
 
end