This commit is contained in:
niczkx 2012-07-24 13:49:19 -06:00
parent bb52608cda
commit 1e2af86d16
1 changed files with 8 additions and 12 deletions

View File

@ -35,18 +35,14 @@ function debugContainersItems()
if hovered then if hovered then
local item = self:getItem() local item = self:getItem()
if item then if item then
local texts = { local text = [[
'id: '..item:getId(), id:]] ..item:getId() .. [[,
'\nstackable: '..tostring(item:isStackable()), stackable:]] ..tostring(item:isStackable()) .. [[,
'\nmarketable: '..tostring(item:isMarketable()), marketable:]] ..tostring(item:isMarketable()) .. [[,
'\nvocation: '..(item:getMarketData() and item:getMarketData().restrictVocation or 'none'), nvocation:]]..(item:getMarketData() and item:getMarketData().restrictVocation or 'none') ..[[,
'\ncloth slot: '..item:getClothSlot() ncloth slot:]] ..item:getClothSlot()
} ]]
local text = '' g_tooltip.display(text)
for _, str in pairs(texts) do
text = text..str
end
g_tooltip.display(text)
end end
else else
g_tooltip.hide() g_tooltip.hide()