You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
596 B
25 lines
596 B
local addonName, addon = ...
|
|
|
|
function addon:Print(...)
|
|
-- can't use string join, it fails on nil values
|
|
local msg = ''
|
|
for index = 1, select('#', ...) do
|
|
local arg = select(index, ...)
|
|
msg = msg .. tostring(arg) .. ' '
|
|
end
|
|
|
|
DEFAULT_CHAT_FRAME:AddMessage('|cff33ff99' .. addonName .. '|r: ' .. msg:trim())
|
|
end
|
|
|
|
function addon:Printf(fmt, ...)
|
|
self:Print(fmt:format(...))
|
|
end
|
|
|
|
function addon:Dump(value, startKey)
|
|
DevTools_Dump(value, startKey)
|
|
end
|
|
|
|
function addon:DumpUI(value)
|
|
UIParentLoadAddOn('Blizzard_DebugTools')
|
|
DisplayTableInspectorWindow(value)
|
|
end
|
|
|