-New debug tool ported over.

This commit is contained in:
Relintai 2016-05-31 14:53:32 +02:00
parent 225a0bd3de
commit bc278e9a77
2 changed files with 25 additions and 2 deletions

View File

@ -431,3 +431,21 @@ function Rekt:HideSelfDRFrames()
frame:Hide();
end
end
-- Debug Stuff:
function Rekt:printAllDRsForGUID(guid)
local drs = Rekt.drs[dstGUID];
for k, v in pairs(drs) do
self:Print(k .. " " .. v);
for ki, kvi in pairs(v) do
self:Print(" " .. ki .. " " .. kvi);
for kj, kvj in pairs(kv) do
self:Print(" " .. kj .. " " .. kvj);
end
end
end
end

View File

@ -794,6 +794,11 @@ function Rekt:getDebugOptions()
Rekt:setDebugLevel(v);
end
},
debuglistselfdrs = {
type = "execute", name = "List SelfDRs",
desc = "List SelfDRs", order = 56,
func = function() return Rekt:printAllDRsForGUID(Rekt.targets["self"]); end,
},
}
return args;
end