http://lua-users.org/wiki/StringsTutorial learn plz *facepalm*
This commit is contained in:
parent
bb52608cda
commit
1e2af86d16
|
@ -35,17 +35,13 @@ 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 = ''
|
|
||||||
for _, str in pairs(texts) do
|
|
||||||
text = text..str
|
|
||||||
end
|
|
||||||
g_tooltip.display(text)
|
g_tooltip.display(text)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue