tibia-client/modules/addon_terminal/commands.lua

17 lines
406 B
Lua
Raw Normal View History

2011-12-07 01:31:55 +01:00
function dumpWidgets()
for i=1,rootWidget:getChildCount() do
print(rootWidget:getChildByIndex(i):getId())
2011-12-07 01:31:55 +01:00
end
2012-01-09 19:45:28 +01:00
end
function drawDebugBoxes(enable)
if enable == nil then enable = true end
g_ui.setDebugBoxesDrawing(enable)
end
2012-01-09 22:16:50 +01:00
function displayItem(id)
local itemWidget = createWidget('Item', rootWidget)
--itemWidget:setItem(Item.create(11703))
end
addEvent(function() displayItem(408) end)