From 1e2af86d16ced6a56350a0df8d54f472546f67e1 Mon Sep 17 00:00:00 2001 From: niczkx Date: Tue, 24 Jul 2012 13:49:19 -0600 Subject: [PATCH] http://lua-users.org/wiki/StringsTutorial learn plz *facepalm* --- modules/client_terminal/commands.lua | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/modules/client_terminal/commands.lua b/modules/client_terminal/commands.lua index 0a7ea20a..1ac3d575 100644 --- a/modules/client_terminal/commands.lua +++ b/modules/client_terminal/commands.lua @@ -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()