mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
fix a loading error crash, command to debug containers items ids
This commit is contained in:
@@ -19,8 +19,12 @@ function showMap()
|
||||
if map then map:show() end
|
||||
end
|
||||
|
||||
function displayItem(id)
|
||||
local itemWidget = createWidget('Item', rootWidget)
|
||||
itemWidget:setItem(Item.create(id))
|
||||
function debugContainersItems()
|
||||
function UIItem:onHoverChange(hovered)
|
||||
if hovered then
|
||||
ToolTip.display(self:getItem():getId())
|
||||
else
|
||||
ToolTip.hide()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user