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 if map then map:show() end
end end
function displayItem(id) function debugContainersItems()
local itemWidget = createWidget('Item', rootWidget) function UIItem:onHoverChange(hovered)
itemWidget:setItem(Item.create(id)) if hovered then
ToolTip.display(self:getItem():getId())
else
ToolTip.hide()
end
end
end end

View File

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