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
+16 -4
View File
@@ -177,6 +177,10 @@ function m.filter_to_string(filter)
filter_term = filter_term == '' and part or filter_term..'/'..part
end
if filter.exact then
add('/exact')
end
if filter.min_level then
add(filter.min_level)
end
@@ -185,6 +189,10 @@ function m.filter_to_string(filter)
add(filter.max_level)
end
if filter.usable then
add('/usable')
end
if filter.class then
local classes = { GetAuctionItemClasses() }
add(classes[filter.class])
@@ -201,12 +209,16 @@ function m.filter_to_string(filter)
add(getglobal('ITEM_QUALITY'..filter.quality..'_DESC'))
end
if filter.usable then
add(filter_term)
if filter.max_price then
add(Aux.money.to_string(filter.max_price, nil, true, nil, true))
end
if filter.exact then
add(filter_term)
if filter.max_percent then
add(filter.max_percent..'%')
end
if filter.discard then
add('/discard')
end
return filter_term