fix a loading error crash, command to debug containers items ids
This commit is contained in:
parent
9997b258b9
commit
0b08552bbc
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue