WoWInterface SVN NeedyGreedy

Compare Revisions

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

Rev 189 → Rev 188

Localization/enUS.lua
89,6 → 89,4
L["Show Debugging Messages"] = true
L["Debug Log"] = true
L["Clear Debug Log"] = true
L["Max Debug Messages"] = true
 
end
NeedyGreedy.lua
417,16 → 417,6
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",
488,7 → 478,6
soundFile = LSM:Fetch("sound", value),
soundName = "None",
debugStatus = false,
maxDebugEvents = 100,
}
}
 
1792,14 → 1781,6
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 = ""
 
2484,14 → 2465,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 .. "}"
2503,7 → 2484,7
if not eventTable then return end
 
table.insert(EVENT_LOG, eventTable)
if #EVENT_LOG > self.db.profile.maxDebugEvents then
if #EVENT_LOG > 100 then
table.remove(EVENT_LOG, 1)
end
end