refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
aux 'auctions_tab' import 'scan'
|
||||
aux 'auctions_tab' local scan = aux.scan
|
||||
|
||||
auction_records = {}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'auctions_tab' import 'gui' 'auction_listing'
|
||||
aux 'auctions_tab' local gui, auction_listing = aux.gui, aux.auction_listing
|
||||
|
||||
function create_frames()
|
||||
frame = CreateFrame('Frame', nil, aux_frame)
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
aux 'bids_tab' import 'scan'
|
||||
aux 'bids_tab' local scan = aux.scan
|
||||
|
||||
auction_records = {}
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
aux 'bids_tab' import 'gui' 'auction_listing'
|
||||
aux 'bids_tab' local gui, auction_listing = aux.gui, aux.auction_listing
|
||||
|
||||
function create_frames()
|
||||
frame = CreateFrame('Frame', nil, aux_frame)
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
aux 'post_tab' import 'scan' 'scan_util' 'post' 'history' 'info' 'persistence' 'item_listing' :al 'auction_listing' 'sorting'
|
||||
aux 'post_tab' local scan, scan_util, post, history, info, persistence, item_listing, al, sorting = aux.scan, aux.scan_util, aux.post, aux.history, aux.info, aux.persistence, aux.item_listing, aux.auction_listing, aux.sorting
|
||||
|
||||
|
||||
local DURATION_4, DURATION_8, DURATION_24 = 120, 480, 1440
|
||||
local settings_schema = {'record', '#', {stack_size='number'}, {duration='number'}, {start_price='number'}, {buyout_price='number'}, {hidden='boolean'}}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
aux 'post_tab' import [''] 'core' 'gui' 'listing' 'item_listing' 'money' 'search_tab'
|
||||
aux 'post_tab' local gui, listing, item_listing, money, search_tab = aux.gui, aux.listing, aux.item_listing, aux.money, aux.search_tab
|
||||
|
||||
function create_frames()
|
||||
frame = CreateFrame('Frame', nil, aux_frame)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'search_tab' import 'scan' 'scan_util'
|
||||
aux 'search_tab' local scan, scan_util = aux.scan, aux.scan_util
|
||||
|
||||
StaticPopupDialogs['AUX_SEARCH_TABLE_FULL'] = {
|
||||
text = 'Table full!\nFurther results from this search will still be processed but no longer displayed in the table.',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'search_tab' import 'gui' [''] 'core' 'completion' 'listing' 'auction_listing' 'filter_util'
|
||||
aux 'search_tab' local gui, completion, listing, auction_listing, filter_util = aux.gui, aux.completion, aux.listing, aux.auction_listing, aux.filter_util
|
||||
|
||||
FILTER_SPACING = 28.5
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'search_tab' import 'info'
|
||||
aux 'search_tab' local info = aux.info
|
||||
|
||||
_G.aux_auto_buy_filter = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user