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
local item = self:getItem()
if item then
local texts = {
'id: '..item:getId(),
'\nstackable: '..tostring(item:isStackable()),
'\nmarketable: '..tostring(item:isMarketable()),
'\nvocation: '..(item:getMarketData() and item:getMarketData().restrictVocation or 'none'),
'\ncloth slot: '..item:getClothSlot()
}
local text = ''
for _, str in pairs(texts) do
text = text..str
end
g_tooltip.display(text)
local text = [[
id:]] ..item:getId() .. [[,
stackable:]] ..tostring(item:isStackable()) .. [[,
marketable:]] ..tostring(item:isMarketable()) .. [[,
nvocation:]]..(item:getMarketData() and item:getMarketData().restrictVocation or 'none') ..[[,
ncloth slot:]] ..item:getClothSlot()
]]
g_tooltip.display(text)
end
else
g_tooltip.hide()