refactoring
This commit is contained in:
@@ -51,7 +51,7 @@ end
|
||||
|
||||
function test(record)
|
||||
return function(index)
|
||||
local auction_info = info.auction(index, 'owner')
|
||||
local auction_info = aux.info.auction(index, 'owner')
|
||||
return auction_info and auction_info.search_signature == record.search_signature
|
||||
end
|
||||
end
|
||||
@@ -67,7 +67,7 @@ do
|
||||
|
||||
scan.abort(scan_id)
|
||||
state = SEARCHING
|
||||
scan_id = scan_util.find(
|
||||
scan_id = aux.scan_util.find(
|
||||
record,
|
||||
status_bar,
|
||||
function() state = IDLE end,
|
||||
|
||||
+2
-2
@@ -51,7 +51,7 @@ end
|
||||
|
||||
function test(record)
|
||||
return function(index)
|
||||
local auction_info = info.auction(index, 'bidder')
|
||||
local auction_info = aux.info.auction(index, 'bidder')
|
||||
return auction_info and auction_info.search_signature == record.search_signature
|
||||
end
|
||||
end
|
||||
@@ -67,7 +67,7 @@ do
|
||||
|
||||
scan.abort(scan_id)
|
||||
state = SEARCHING
|
||||
scan_id = scan_util.find(
|
||||
scan_id = aux.scan_util.find(
|
||||
record,
|
||||
status_bar,
|
||||
function() state = IDLE end,
|
||||
|
||||
+1
-1
@@ -409,7 +409,7 @@ function update_inventory_records()
|
||||
availability[i] = 0
|
||||
end
|
||||
availability[charge_class] = item_info.count
|
||||
auctionable_map[item_info.item_key] = T(
|
||||
auctionable_map[item_info.item_key] = T[2](
|
||||
'item_id', item_info.item_id,
|
||||
'suffix_id', item_info.suffix_id,
|
||||
'key', item_info.item_key,
|
||||
|
||||
@@ -313,7 +313,7 @@ function set_filter_display_offset(x_offset, y_offset)
|
||||
end
|
||||
|
||||
function initialize_filter_dropdown()
|
||||
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
|
||||
for filter in temp-set[2]('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(T(
|
||||
'text', filter,
|
||||
'value', filter,
|
||||
|
||||
@@ -208,7 +208,7 @@ function create_frames()
|
||||
btn:SetHeight(25)
|
||||
btn:SetText('Stop')
|
||||
btn:SetScript('OnClick', function()
|
||||
scan.abort(search_scan_id)
|
||||
aux.scan.abort(search_scan_id)
|
||||
end)
|
||||
stop_button = btn
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'search_tab' local info = aux.info
|
||||
aux 'search_tab' local info, scan = aux.info, aux.scan
|
||||
|
||||
_G.aux_auto_buy_filter = ''
|
||||
|
||||
@@ -396,7 +396,7 @@ do
|
||||
|
||||
scan.abort(scan_id)
|
||||
state = SEARCHING
|
||||
scan_id = scan_util.find(
|
||||
scan_id = aux.scan_util.find(
|
||||
record,
|
||||
current_search.status_bar,
|
||||
function()
|
||||
|
||||
Reference in New Issue
Block a user