add numpad keys in lua const

This commit is contained in:
Eduardo Bart
2012-01-16 03:54:53 -02:00
parent de0e4a1acf
commit 186e3dc86b
6 changed files with 38 additions and 3 deletions

View File

@@ -9,7 +9,18 @@ function drawDebugBoxes(enable)
g_ui.setDebugBoxesDrawing(enable)
end
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
function displayItem(id)
local itemWidget = createWidget('Item', rootWidget)
itemWidget:setItem(Item.create(id))
end