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.

17 lines
406 B

function dumpWidgets()
for i=1,rootWidget:getChildCount() do
print(rootWidget:getChildByIndex(i):getId())
end
end
function drawDebugBoxes(enable)
if enable == nil then enable = true end
g_ui.setDebugBoxesDrawing(enable)
end
function displayItem(id)
local itemWidget = createWidget('Item', rootWidget)
--itemWidget:setItem(Item.create(11703))
end
addEvent(function() displayItem(408) end)