|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
|
aux 'search_tab' import 'filter_util'
|
|
|
|
|
aux 'search_tab' local filter_util = aux.filter_util
|
|
|
|
|
|
|
|
|
|
function valid_level(str)
|
|
|
|
|
local level = tonumber(str)
|
|
|
|
@@ -72,14 +72,14 @@ function update_form()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if blizzard_query.exact then
|
|
|
|
|
for _, key in -temp-list('class', 'subclass', 'slot', 'quality') do
|
|
|
|
|
for key in -temp-set('class', 'subclass', 'slot', 'quality') do
|
|
|
|
|
M[key..'_dropdown'].button:Disable()
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
class_dropdown.button:Enable()
|
|
|
|
|
quality_dropdown.button:Enable()
|
|
|
|
|
end
|
|
|
|
|
for _, key in -temp-list('min_level', 'max_level') do
|
|
|
|
|
for key in -temp-set('min_level', 'max_level') do
|
|
|
|
|
if blizzard_query.exact then
|
|
|
|
|
M[key..'_input']:Disable()
|
|
|
|
|
else
|
|
|
|
@@ -313,7 +313,7 @@ function set_filter_display_offset(x_offset, y_offset)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function initialize_filter_dropdown()
|
|
|
|
|
for _, filter in -temp-list('and', 'or', 'not', 'min-unit-bid', 'min-unit-buy', 'max-unit-bid', 'max-unit-buy', 'bid-profit', 'buy-profit', 'bid-vend-profit', 'buy-vend-profit', 'bid-dis-profit', 'buy-dis-profit', 'bid-pct', 'buy-pct', 'item', 'tooltip', 'min-lvl', 'max-lvl', 'rarity')('left', 'utilizable', 'discard') do
|
|
|
|
|
for filter in -temp-set('and', 'or', 'not', 'min-unit-bid', 'min-unit-buy', 'max-unit-bid', 'max-unit-buy', 'bid-profit', 'buy-profit', 'bid-vend-profit', 'buy-vend-profit', 'bid-dis-profit', 'buy-dis-profit', 'bid-pct', 'buy-pct', 'item', 'tooltip', 'min-lvl', 'max-lvl', 'rarity')('left', 'utilizable', 'discard') do
|
|
|
|
|
UIDropDownMenu_AddButton(-object(
|
|
|
|
|
'text', filter,
|
|
|
|
|
'value', filter,
|
|
|
|
|