mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
add numpad keys in lua const
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user