working on module refactoring
This commit is contained in:
+11
-11
@@ -1,14 +1,14 @@
|
||||
aux_auctions_tab = module
|
||||
module'aux.auctions_tab'
|
||||
|
||||
include (green_t)
|
||||
include (aux)
|
||||
include (aux_util)
|
||||
include (aux_control)
|
||||
include (aux_util_color)
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
|
||||
TAB 'Auctions'
|
||||
TAB'Auctions'
|
||||
|
||||
local scan = aux_scan
|
||||
local scan = M'aux.scan'
|
||||
|
||||
private.auction_records = t
|
||||
|
||||
@@ -33,7 +33,7 @@ end
|
||||
function public.scan_auctions()
|
||||
|
||||
status_bar:update_status(0,0)
|
||||
status_bar:set_text('Scanning auctions...')
|
||||
status_bar:set_text'Scanning auctions...'
|
||||
|
||||
wipe(auction_records)
|
||||
update_listing()
|
||||
@@ -49,12 +49,12 @@ function public.scan_auctions()
|
||||
end,
|
||||
on_complete = function()
|
||||
status_bar:update_status(100, 100)
|
||||
status_bar:set_text('Scan complete')
|
||||
status_bar:set_text'Scan complete'
|
||||
update_listing()
|
||||
end,
|
||||
on_abort = function()
|
||||
status_bar:update_status(100, 100)
|
||||
status_bar:set_text('Scan aborted')
|
||||
status_bar:set_text'Scan aborted'
|
||||
end,
|
||||
}
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
aux_auctions_tab_frame = module
|
||||
module'aux.auctions_tab.frame'
|
||||
|
||||
local gui, auction_listing = aux_gui, aux_auction_listing
|
||||
local gui, auction_listing = M'aux.gui', M'aux.auction_listing'
|
||||
|
||||
function public.create()
|
||||
setfenv(1, getfenv(2))
|
||||
@@ -33,19 +33,19 @@ function public.create()
|
||||
status_bar:SetHeight(25)
|
||||
status_bar:SetPoint('TOPLEFT', AuxFrame.content, 'BOTTOMLEFT', 0, -6)
|
||||
status_bar:update_status(100, 100)
|
||||
status_bar:set_text('')
|
||||
status_bar:set_text''
|
||||
end
|
||||
do
|
||||
local btn = gui.button(frame)
|
||||
btn:SetPoint('TOPLEFT', status_bar, 'TOPRIGHT', 5, 0)
|
||||
btn:SetText('Cancel')
|
||||
btn:SetText'Cancel'
|
||||
btn:Disable()
|
||||
private.cancel_button = btn
|
||||
end
|
||||
do
|
||||
local btn = gui.button(frame)
|
||||
btn:SetPoint('TOPLEFT', cancel_button, 'TOPRIGHT', 5, 0)
|
||||
btn:SetText('Refresh')
|
||||
btn:SetText'Refresh'
|
||||
btn:SetScript('OnClick', function()
|
||||
scan_auctions()
|
||||
end)
|
||||
|
||||
+8
-8
@@ -1,14 +1,14 @@
|
||||
aux_bids_tab = module
|
||||
module'aux.bids_tab'
|
||||
|
||||
include (green_t)
|
||||
include (aux)
|
||||
include (aux_util)
|
||||
include (aux_control)
|
||||
include (aux_util_color)
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
|
||||
TAB 'Bids'
|
||||
TAB'Bids'
|
||||
|
||||
local scan = aux_scan
|
||||
local scan = M'aux.scan'
|
||||
|
||||
private.auction_records = t
|
||||
|
||||
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
aux_bids_tab_frame = module
|
||||
module'aux.bids_tab.frame'
|
||||
|
||||
local gui, auction_listing = aux_gui, aux_auction_listing
|
||||
local gui, auction_listing = M'aux.gui', M'aux.auction_listing'
|
||||
|
||||
function public.create()
|
||||
setfenv(1, getfenv(2))
|
||||
@@ -42,21 +42,21 @@ function public.create()
|
||||
do
|
||||
local btn = gui.button(frame)
|
||||
btn:SetPoint('TOPLEFT', status_bar, 'TOPRIGHT', 5, 0)
|
||||
btn:SetText('Bid')
|
||||
btn:SetText'Bid'
|
||||
btn:Disable()
|
||||
private.bid_button = btn
|
||||
end
|
||||
do
|
||||
local btn = gui.button(frame)
|
||||
btn:SetPoint('TOPLEFT', bid_button, 'TOPRIGHT', 5, 0)
|
||||
btn:SetText('Buyout')
|
||||
btn:SetText'Buyout'
|
||||
btn:Disable()
|
||||
private.buyout_button = btn
|
||||
end
|
||||
do
|
||||
local btn = gui.button(frame)
|
||||
btn:SetPoint('TOPLEFT', buyout_button, 'TOPRIGHT', 5, 0)
|
||||
btn:SetText('Refresh')
|
||||
btn:SetText'Refresh'
|
||||
btn:SetScript('OnClick', function()
|
||||
scan_bids()
|
||||
end)
|
||||
|
||||
+8
-8
@@ -1,14 +1,14 @@
|
||||
aux_post_tab = module
|
||||
module'aux.post_tab'
|
||||
|
||||
include (green_t)
|
||||
include (aux)
|
||||
include (aux_util)
|
||||
include (aux_control)
|
||||
include (aux_util_color)
|
||||
include'green_t'
|
||||
include'aux'
|
||||
include'aux.util'
|
||||
include'aux.control'
|
||||
include'aux.util.color'
|
||||
|
||||
TAB 'Post'
|
||||
TAB'Post'
|
||||
|
||||
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 scan, scan_util, history, info, persistence, item_listing, al, sorting = M'aux.scan', M'aux.scan_util', M'aux.history', M'aux.info', M'aux.persistence', M'aux.item_listing', M'aux.auction_listing', M'aux.sorting'
|
||||
|
||||
|
||||
local DURATION_4, DURATION_8, DURATION_24 = 120, 480, 1440
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
aux_post_tab_frame = module
|
||||
module'aux.post_tab.frame'
|
||||
|
||||
local gui, listing, item_listing, money, search_tab = aux_gui, aux_listing, aux_item_listing, aux_money, aux_search_tab
|
||||
local gui, listing, item_listing, money, search_tab = M'aux.gui', M'aux.listing', M'aux.item_listing', M'aux.money', M'aux.search_tab'
|
||||
|
||||
function public.create()
|
||||
setfenv(1, getfenv(2))
|
||||
|
||||
Reference in New Issue
Block a user