working on more detailed tooltips

This commit is contained in:
Manuel Simon Hirsig
2015-09-29 19:31:22 +02:00
parent 51d792c425
commit 6ad0a8da8a
3 changed files with 49 additions and 29 deletions
+10 -3
View File
@@ -505,8 +505,15 @@ end
function Aux.auction_key(tooltip, stack_size, buyout_price)
local key = ''
for i, entry in ipairs(tooltip) do
key = key .. (i == 1 and '' or '_')
for i, line in ipairs(tooltip) do
local left_text = line[1].text
local right_text = line[2].text
if left_text then
key = key .. left_text .. (i == 1 and '' or '_')
end
if right_text then
key = key .. right_text .. '_'
end
end
return key .. '_' .. stack_size .. '_' .. buyout_price
return key .. stack_size .. '_' .. buyout_price
end