some polish for the buying process

This commit is contained in:
Manuel Simon Hirsig
2016-01-24 14:51:50 +01:00
parent 5a364b7c8a
commit acbde9a9dd
4 changed files with 35 additions and 6 deletions
+12 -2
View File
@@ -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()