2011-12-07 01:31:55 +01:00
|
|
|
function dumpWidgets()
|
2012-01-03 01:42:53 +01:00
|
|
|
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
|
|
|
|
2012-01-16 06:54:53 +01:00
|
|
|
function hideMap()
|
|
|
|
local map = rootWidget:recursiveGetChildById('gameMapPanel')
|
|
|
|
if map then map:hide() end
|
|
|
|
end
|
|
|
|
|
|
|
|
function showMap()
|
|
|
|
local map = rootWidget:recursiveGetChildById('gameMapPanel')
|
|
|
|
if map then map:show() end
|
|
|
|
end
|
|
|
|
|
2012-01-17 09:26:13 +01:00
|
|
|
function debugContainersItems()
|
|
|
|
function UIItem:onHoverChange(hovered)
|
|
|
|
if hovered then
|
2012-01-17 23:28:55 +01:00
|
|
|
local item = self:getItem()
|
|
|
|
if item then ToolTip.display(item:getId()) end
|
2012-01-17 09:26:13 +01:00
|
|
|
else
|
|
|
|
ToolTip.hide()
|
|
|
|
end
|
|
|
|
end
|
2012-01-09 22:16:50 +01:00
|
|
|
end
|
2012-01-19 05:12:53 +01:00
|
|
|
|
|
|
|
function quit()
|
|
|
|
exit()
|
2012-01-24 19:39:16 +01:00
|
|
|
end
|