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
+11
View File
@@ -129,6 +129,17 @@ function Aux_OnAddonLoaded()
end
end
function Aux.place_bid(type, index, bid)
local money = GetMoney()
if money >= bid then
Aux.bid_lock = true
Aux.control.as_soon_as(function() return GetMoney() < money end, function()
Aux.bid_lock = false
end)
end
PlaceAuctionBid(type, index, bid)
end
function Aux.log_frame_load()
this:SetFading(false)
this:EnableMouseWheel()