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

master
Eduardo Bart 12 years ago
parent 9997b258b9
commit 0b08552bbc

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

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

Loading…
Cancel
Save