Reading this addon's code gives me the feeling that it was built ass-backwards, starting with a GUI and then tacking on functionality. It cannot be very much fun to maintain, especially considering its near-total lack of descriptive variable names.
Anyway, the easiest thing would be to ignore my last post, and just add these lines to the very end of TinyDPS.lua:
Code:
function TinyDPS_Report(fight, view, max, channel, target)
local _fight, _view, _max = tdpsF, tdpsV, tdpsReportLength
if type(fight) ~= "number" then
if fight == "all" or fight == "overall" or fight == "global" then
fight = 1
else
fight = 2
end
end
changeFight(nil, fight) -- 1 = overall, 2 = current
changeView(nil, view:sub(1, 1)) -- d = damage, h = healing
tdpsReportLength = max
report(nil, channel, target)
changeFight(nil, _fight)
changeView(nil, _view)
tdpsReportLength = _max
end
Then, to report the top 5 damage dealers from the current/last fight to party chat, use this macro:
Code:
/run TinyDPS_Report("current", "damage", 5, "PARTY")
To report the top 2 healers from all fights (since the last reset) in a whisper:
Code:
/run TinyDPS_Report("all", "healing", 2, "WHISPER", "Phanx")
Let me know if there are any errors; I cannot log in and test anything right now.