working on module refactoring
This commit is contained in:
+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)
|
||||
|
||||
Reference in New Issue
Block a user