bugfix and refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
aux 'auctions_tab' private() local scan = aux.scan
|
||||
aux 'auctions_tab' local scan = aux.scan
|
||||
|
||||
auction_records = t
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'auctions_tab' private() local gui, auction_listing = aux.gui, aux.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' private() local scan = aux.scan
|
||||
aux 'bids_tab' local scan = aux.scan
|
||||
|
||||
auction_records = t
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
aux 'bids_tab' private() local gui, auction_listing = aux.gui, aux.auction_listing
|
||||
aux 'bids_tab' local gui, auction_listing = aux.gui, aux.auction_listing
|
||||
|
||||
function create_frames()
|
||||
frame = CreateFrame('Frame', nil, aux_frame)
|
||||
|
||||
+12
-15
@@ -1,4 +1,4 @@
|
||||
aux 'post_tab' private() local scan, scan_util, history, info, persistence, item_listing, al, sorting = aux.scan, aux.scan_util, aux.history, aux.info, aux.persistence, aux.item_listing, aux.auction_listing, aux.sorting
|
||||
aux 'post_tab' local scan, scan_util, history, info, persistence, item_listing, al, sorting = aux.scan, aux.scan_util, aux.history, aux.info, aux.persistence, aux.item_listing, aux.auction_listing, aux.sorting
|
||||
|
||||
|
||||
local DURATION_4, DURATION_8, DURATION_24 = 120, 480, 1440
|
||||
@@ -32,21 +32,18 @@ end
|
||||
|
||||
local scan_id, inventory_records, existing_auctions = 0, t, t
|
||||
|
||||
do
|
||||
local item
|
||||
selected_item
|
||||
{
|
||||
get = function() return item end,
|
||||
set = function(v) item = v end,
|
||||
}
|
||||
function refresh_button_click()
|
||||
aux.scan.abort(scan_id)
|
||||
refresh_entries()
|
||||
refresh = true
|
||||
end
|
||||
do
|
||||
local c = 0
|
||||
refresh
|
||||
{
|
||||
get = function() return c end,
|
||||
set = function(v) c = v end,
|
||||
}
|
||||
|
||||
do local item
|
||||
selected_item {get=function() return item end, set=function(v) item = v end}
|
||||
end
|
||||
|
||||
do local c = 0
|
||||
refresh {get=function() return c end, set=function(v) c = v end}
|
||||
end
|
||||
|
||||
function LOAD()
|
||||
|
||||
+2
-6
@@ -1,4 +1,4 @@
|
||||
aux 'post_tab' private() local gui, listing, item_listing, money, search_tab = aux.gui, aux.listing, aux.item_listing, aux.money, aux.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)
|
||||
@@ -103,11 +103,7 @@ function create_frames()
|
||||
btn:SetWidth(80)
|
||||
btn:SetHeight(24)
|
||||
btn:SetText('Refresh')
|
||||
btn:SetScript('OnClick', function()
|
||||
aux.scan.abort(scan_id)
|
||||
refresh_entries()
|
||||
refresh = true
|
||||
end)
|
||||
btn:SetScript('OnClick', refresh_button_click)
|
||||
refresh_button = btn
|
||||
end
|
||||
do
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'search_tab' private() local scan, scan_util = aux.scan, aux.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' private() local filter_util = aux.filter_util
|
||||
aux 'search_tab' local filter_util = aux.filter_util
|
||||
|
||||
function valid_level(str)
|
||||
local level = tonumber(str)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'search_tab' private() local gui, completion, listing, auction_listing, filter_util = aux.gui, aux.completion, aux.listing, aux.auction_listing, aux.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' private() local info, scan = aux.info, aux.scan
|
||||
aux 'search_tab' local info, scan = aux.info, aux.scan
|
||||
|
||||
_G.aux_auto_buy_filter = ''
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
aux 'search_tab' private()
|
||||
aux 'search_tab'
|
||||
|
||||
_G.aux_favorite_searches = t
|
||||
_G.aux_recent_searches = t
|
||||
|
||||
Reference in New Issue
Block a user