Game.useOnCreature lua api

This commit is contained in:
Eduardo Bart
2012-01-17 20:28:55 -02:00
parent 0b08552bbc
commit cc5b36b1cb
7 changed files with 18 additions and 4 deletions

View File

@@ -22,7 +22,8 @@ end
function debugContainersItems()
function UIItem:onHoverChange(hovered)
if hovered then
ToolTip.display(self:getItem():getId())
local item = self:getItem()
if item then ToolTip.display(item:getId()) end
else
ToolTip.hide()
end