refactoring
This commit is contained in:
+1
-1
@@ -83,7 +83,7 @@ do
|
||||
bid_button:SetScript('OnClick', function()
|
||||
if test(record)(index) and listing:ContainsRecord(record) then
|
||||
place_bid('bidder', index, record.bid_price, record.bid_price < record.buyout_price and function()
|
||||
info.bid_update(record)
|
||||
aux.info.bid_update(record)
|
||||
listing:SetDatabase()
|
||||
end or L(listing.RemoveAuctionRecord, listing, record))
|
||||
end
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
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
|
||||
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
|
||||
@@ -213,7 +213,7 @@ function post_auctions()
|
||||
duration_code = 4
|
||||
end
|
||||
|
||||
post.start(
|
||||
aux.post.start(
|
||||
key,
|
||||
stack_size,
|
||||
duration,
|
||||
|
||||
+3
-3
@@ -104,7 +104,7 @@ function create_frames()
|
||||
btn:SetHeight(24)
|
||||
btn:SetText('Refresh')
|
||||
btn:SetScript('OnClick', function()
|
||||
scan.abort(scan_id)
|
||||
aux.scan.abort(scan_id)
|
||||
refresh_entries()
|
||||
refresh = true
|
||||
end)
|
||||
@@ -226,7 +226,7 @@ function create_frames()
|
||||
unit_buyout_price:SetFocus()
|
||||
end
|
||||
end)
|
||||
editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and aux.money.GOLD_TEXT or str == 's' and aux.money.SILVER_TEXT or str == 'c' and aux.money.COPPER_TEXT end) end
|
||||
editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and money.GOLD_TEXT or str == 's' and money.SILVER_TEXT or str == 'c' and money.COPPER_TEXT end) end
|
||||
editbox.formatter = function() return money.to_string(get_unit_start_price(), true, nil, 3) end
|
||||
editbox.change = function() refresh = true end
|
||||
editbox.enter = function() this:ClearFocus() end
|
||||
@@ -261,7 +261,7 @@ function create_frames()
|
||||
stack_size_slider.editbox:SetFocus()
|
||||
end
|
||||
end)
|
||||
editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and aux.money.GOLD_TEXT or str == 's' and aux.money.SILVER_TEXT or str == 'c' and aux.money.COPPER_TEXT end) end
|
||||
editbox.colorizer = function(text) return gsub(text, '[gsc]', function(str) return str == 'g' and money.GOLD_TEXT or str == 's' and money.SILVER_TEXT or str == 'c' and money.COPPER_TEXT end) end
|
||||
editbox.formatter = function() return money.to_string(get_unit_buyout_price(), true, nil, 3) end
|
||||
editbox.change = function() refresh = true end
|
||||
editbox.enter = function() this:ClearFocus() end
|
||||
|
||||
Reference in New Issue
Block a user