added seller filter

This commit is contained in:
Simon Hirsig
2019-03-27 08:38:42 +01:00
parent d6fefc5184
commit 5d3c20efb1
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ function set_filter_display_offset(x_offset, y_offset)
end
function initialize_filter_dropdown()
for _, filter in ipairs(T.temp-T.list('and', 'or', 'not', 'price', 'profit', 'vendor-profit', 'disenchant-profit', 'percent', 'bid-price', 'bid-profit', 'bid-vendor-profit', 'bid-disenchant-profit', 'bid-percent', 'item', 'tooltip', 'min-level', 'max-level', 'rarity', 'left', 'utilizable')) do
for _, filter in ipairs(T.temp-T.list('and', 'or', 'not', 'price', 'profit', 'vendor-profit', 'disenchant-profit', 'percent', 'bid-price', 'bid-profit', 'bid-vendor-profit', 'bid-disenchant-profit', 'bid-percent', 'item', 'tooltip', 'min-level', 'max-level', 'rarity', 'left', 'utilizable', 'seller')) do
UIDropDownMenu_AddButton(T.map(
'text', filter,
'value', filter,
+9
View File
@@ -179,6 +179,15 @@ M.filters = {
end
end
},
['seller'] = {
input_type = 'string',
validator = function(name)
return function(auction_record)
return auction_record.owner and strupper(name) == strupper(auction_record.owner)
end
end
},
}
function operator(str)