mirror of
https://github.com/Relintai/Relintais-Enemy-Kooldown-Tracker-WotLK.git
synced 2024-11-08 10:12:11 +01:00
-New debug tool ported over.
This commit is contained in:
parent
225a0bd3de
commit
bc278e9a77
22
data/drs.lua
22
data/drs.lua
@ -327,7 +327,7 @@ function Rekt:CreateDRFrames(which)
|
|||||||
t:SetPoint("CENTER", frame, "CENTER", 0, 0);
|
t:SetPoint("CENTER", frame, "CENTER", 0, 0);
|
||||||
t:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")
|
t:SetFont("Fonts\\FRIZQT__.TTF", 11, "OUTLINE, MONOCHROME")
|
||||||
--frame:Hide();
|
--frame:Hide();
|
||||||
|
|
||||||
Rekt.frames[which][i] = {}
|
Rekt.frames[which][i] = {}
|
||||||
Rekt.frames[which][i]["frame"] = frame;
|
Rekt.frames[which][i]["frame"] = frame;
|
||||||
Rekt.frames[which][i]["texture"] = text;
|
Rekt.frames[which][i]["texture"] = text;
|
||||||
@ -430,4 +430,22 @@ function Rekt:HideSelfDRFrames()
|
|||||||
local frame = Rekt.frames["selfdr"][i]["frame"];
|
local frame = Rekt.frames["selfdr"][i]["frame"];
|
||||||
frame:Hide();
|
frame:Hide();
|
||||||
end
|
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
|
||||||
|
@ -794,6 +794,11 @@ function Rekt:getDebugOptions()
|
|||||||
Rekt:setDebugLevel(v);
|
Rekt:setDebugLevel(v);
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
debuglistselfdrs = {
|
||||||
|
type = "execute", name = "List SelfDRs",
|
||||||
|
desc = "List SelfDRs", order = 56,
|
||||||
|
func = function() return Rekt:printAllDRsForGUID(Rekt.targets["self"]); end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
return args;
|
return args;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user