refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
local m, private, public = Aux.tab(3, 'auctions_frame')
|
||||
local m, public, private = Aux.tab(3, 'auctions_frame')
|
||||
|
||||
local auction_records
|
||||
|
||||
@@ -7,14 +7,16 @@ function public.FRAMES(f)
|
||||
end
|
||||
|
||||
function public.LOAD()
|
||||
m.create_frames(m, private, public)
|
||||
m.create_frames(m, public, private)
|
||||
end
|
||||
|
||||
function public.OPEN()
|
||||
AuxAuctionsFrame:Show()
|
||||
m.scan_auctions()
|
||||
end
|
||||
|
||||
function public.CLOSE()
|
||||
AuxAuctionsFrame:Hide()
|
||||
end
|
||||
|
||||
function private.update_listing()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Aux.auctions_frame.FRAMES(function(m, private, public)
|
||||
Aux.auctions_frame.FRAMES(function(m, public, private)
|
||||
private.listing = Aux.auction_listing.CreateAuctionResultsTable(AuxAuctionsFrameListing, Aux.auction_listing.auctions_config)
|
||||
m.listing:SetSort(1,2,3,4,5,6,7,8)
|
||||
m.listing:Reset()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local m, private, public = Aux.tab(4, 'bids_frame')
|
||||
local m, public, private = Aux.tab(4, 'bids_frame')
|
||||
|
||||
local auction_records
|
||||
|
||||
@@ -7,14 +7,16 @@ function public.FRAMES(f)
|
||||
end
|
||||
|
||||
function public.LOAD()
|
||||
m.create_frames(m, private, public)
|
||||
m.create_frames(m, public, private)
|
||||
end
|
||||
|
||||
function public.OPEN()
|
||||
AuxBidsFrame:Show()
|
||||
m.scan_bids()
|
||||
end
|
||||
|
||||
function public.CLOSE()
|
||||
AuxBidsFrame:Hide()
|
||||
end
|
||||
|
||||
function private.update_listing()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Aux.bids_frame.FRAMES(function(m, private, public)
|
||||
Aux.bids_frame.FRAMES(function(m, public, private)
|
||||
private.listing = Aux.auction_listing.CreateAuctionResultsTable(AuxBidsFrameListing, Aux.auction_listing.bids_config)
|
||||
m.listing:SetSort(1,2,3,4,5,6,7,8)
|
||||
m.listing:Reset()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local m, private, public = Aux.tab(2, 'post_frame')
|
||||
local m, public, private = Aux.tab(2, 'post_frame')
|
||||
|
||||
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'}}
|
||||
@@ -15,10 +15,12 @@ function public.FRAMES(f)
|
||||
end
|
||||
|
||||
function public.LOAD()
|
||||
m.create_frames(m, private, public)
|
||||
m.create_frames(m, public, private)
|
||||
end
|
||||
|
||||
function public.OPEN()
|
||||
AuxPostFrame:Show()
|
||||
|
||||
m.deposit:SetText('Deposit: '..Aux.money.to_string(0, nil, nil, nil, Aux.gui.inline_color({255, 254, 250, 1})))
|
||||
|
||||
m.set_unit_start_price(0)
|
||||
@@ -31,6 +33,7 @@ end
|
||||
|
||||
function public.CLOSE()
|
||||
m.selected_item = nil
|
||||
AuxPostFrame:Hide()
|
||||
end
|
||||
|
||||
function private.default_settings()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Aux.post_frame.FRAMES(function(m, private, public)
|
||||
Aux.post_frame.FRAMES(function(m, public, private)
|
||||
Aux.gui.vertical_line(AuxPostFrameContent, 219)
|
||||
|
||||
AuxPostParametersItem:EnableMouse()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
local m, private, public = Aux.tab(1, 'search_frame')
|
||||
local m, public, private = Aux.tab(1, 'search_frame')
|
||||
|
||||
aux_favorite_searches = {}
|
||||
aux_recent_searches = {}
|
||||
@@ -74,18 +74,20 @@ function public.FRAMES(f)
|
||||
end
|
||||
|
||||
function public.LOAD()
|
||||
m.create_frames(m, private, public)
|
||||
m.create_frames(m, public, private)
|
||||
m:disable_sniping()
|
||||
m.update_search()
|
||||
m.update_tab(m.SAVED)
|
||||
end
|
||||
|
||||
function public.OPEN()
|
||||
AuxSearchFrame:Show()
|
||||
m.update_search_listings()
|
||||
end
|
||||
|
||||
function public.CLOSE()
|
||||
m.results_listing:SetSelectedRecord()
|
||||
AuxSearchFrame:Hide()
|
||||
end
|
||||
|
||||
function private.update_search_listings()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Aux.search_frame.FRAMES(function(m, private, public)
|
||||
Aux.search_frame.FRAMES(function(m, public, private)
|
||||
do
|
||||
local btn = Aux.gui.button(AuxSearchFrame, 22)
|
||||
btn:SetPoint('TOPLEFT', 5, -8)
|
||||
|
||||
Reference in New Issue
Block a user