more progress on the search tab

This commit is contained in:
Manuel Simon Hirsig
2016-02-01 23:33:34 +01:00
parent d7f31c062f
commit e59a6c76c0
5 changed files with 102 additions and 47 deletions
+3 -3
View File
@@ -29,13 +29,13 @@ function m.to_string(money, pad, trim, color, no_color)
if trim then
local parts = {}
if gold > 0 then
tinsert(parts, private:format_number(gold, false, color)..gold_text)
tinsert(parts, m.format_number(gold, false, color)..gold_text)
end
if silver > 0 then
tinsert(parts, private:format_number(silver, pad, color)..silver_text)
tinsert(parts, m.format_number(silver, pad, color)..silver_text)
end
if copper > 0 then
tinsert(parts, private:format_number(copper, pad, color)..copper_text)
tinsert(parts, m.format_number(copper, pad, color)..copper_text)
end
text = Aux.util.join(parts, ' ')
else