fix a loading error crash, command to debug containers items ids

This commit is contained in:
Eduardo Bart 2012-01-17 06:26:13 -02:00
parent 9997b258b9
commit 0b08552bbc
2 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -25,7 +25,7 @@
#include "declarations.h"
class LuaException : public std::exception
class LuaException : public Exception
{
public:
LuaException(const std::string& error, int traceLevel = -1);