-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

@ -327,7 +327,7 @@ function Rekt:CreateDRFrames(which)
t:SetPoint("CENTER", frame, "CENTER", 0, 0);
t:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")
--frame:Hide();
Rekt.frames[which][i] = {}
Rekt.frames[which][i]["frame"] = frame;
Rekt.frames[which][i]["texture"] = text;
@ -430,4 +430,22 @@ function Rekt:HideSelfDRFrames()
local frame = Rekt.frames["selfdr"][i]["frame"];
frame:Hide();
end
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