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
|
||||
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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue