niczkx 12 years ago
parent bb52608cda
commit 1e2af86d16

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

Loading…
Cancel
Save