receit notification change

This commit is contained in:
Manuel Simon Hirsig
2016-10-29 03:38:57 +02:00
parent a4adef7146
commit 419d70f175
2 changed files with 3 additions and 10 deletions
+3 -7
View File
@@ -128,9 +128,6 @@ do
f:AddMessage(link .. 'x' .. purchased[link])
end
end
end
do
local locked
function M.get_bid_in_progress() return locked end
function M.place_bid(type, index, amount, on_success)
@@ -139,12 +136,11 @@ do
PlaceAuctionBid(type, index, amount)
if money >= amount then
locked = true
local link = GetAuctionItemLink(type, index)
local _, _, count = GetAuctionItemInfo(type, index)
local record = info.auction(index, type)
event_listener('CHAT_MSG_SYSTEM', function(kill)
if arg1 == ERR_AUCTION_BID_PLACED then
purchased[link] = (purchased[link] or 0) + count
show_receit(link)
purchased[record.link] = (purchased[record.link] or 0) + record.aux_quantity
f:AddMessage(record.link .. 'x' .. purchased[record.link])
do (on_success or nop)() end
locked = false
kill()
-3
View File
@@ -834,9 +834,6 @@ local methods = {
end
if not silent and self.handlers.OnSelectionChanged and not self.scrollDisabled then
if selectedData then
show_receit(selectedData.record.link)
end
self.handlers.OnSelectionChanged(self, selectedData or nil)
end
end,