From 419d70f175eddaac1219b725fd6a36657053efc2 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 29 Oct 2016 03:38:57 +0200 Subject: [PATCH] receit notification change --- aux-addon.lua | 10 +++------- gui/auction_listing.lua | 3 --- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/aux-addon.lua b/aux-addon.lua index 4b8022a..c0e44bd 100644 --- a/aux-addon.lua +++ b/aux-addon.lua @@ -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() diff --git a/gui/auction_listing.lua b/gui/auction_listing.lua index b859d2c..3e17cce 100644 --- a/gui/auction_listing.lua +++ b/gui/auction_listing.lua @@ -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,