some polish for the buying process
This commit is contained in:
+12
-2
@@ -653,6 +653,7 @@ function find_auction(entry, express_mode, buyout_mode)
|
||||
end
|
||||
|
||||
Aux.scan_util.find_auction(test, search_query, entry.page, private.status_bar, function(index)
|
||||
|
||||
if not index then
|
||||
entry.gone = true
|
||||
private.clear_selection()
|
||||
@@ -665,14 +666,23 @@ function find_auction(entry, express_mode, buyout_mode)
|
||||
end
|
||||
|
||||
if express_mode then
|
||||
if Aux.bid_lock then
|
||||
return
|
||||
end
|
||||
|
||||
if GetMoney() >= amount then
|
||||
entry.gone = true
|
||||
end
|
||||
PlaceAuctionBid('list', index, amount)
|
||||
Aux.place_bid('list', index, amount)
|
||||
|
||||
private.clear_selection()
|
||||
refresh = true
|
||||
else
|
||||
private.buyout_button:SetScript('OnClick', function()
|
||||
if Aux.bid_lock then
|
||||
return
|
||||
end
|
||||
|
||||
if not test(index) then
|
||||
private.buyout_button:Disable()
|
||||
return find_auction(entry, express_mode, buyout_mode) -- try again
|
||||
@@ -681,7 +691,7 @@ function find_auction(entry, express_mode, buyout_mode)
|
||||
if GetMoney() >= amount then
|
||||
entry.gone = true
|
||||
end
|
||||
PlaceAuctionBid('list', index, entry.buyout_price)
|
||||
Aux.place_bid('list', index, entry.buyout_price)
|
||||
|
||||
private.buyout_button:Disable()
|
||||
private.clear_selection()
|
||||
|
||||
Reference in New Issue
Block a user