Browse Source

stores auction data that has been scanned up to the point of interruption

no-attributes-dev
Jørgen Lien Sellæg 5 months ago
parent
commit
e722482be5
  1. 2
      TradeSkillMaster/Auction/AuctionScanning.lua
  2. 2
      TradeSkillMaster/Libs/LibAuctionScan-1.0/LibAuctionScan-1.0.lua
  3. 2
      TradeSkillMaster_AuctionDB/Modules/Scanning.lua

2
TradeSkillMaster/Auction/AuctionScanning.lua

@ -34,7 +34,7 @@ local function eventHandler(event)
-- auction house was closed, make sure all scanning is stopped -- auction house was closed, make sure all scanning is stopped
AuctionScanning:UnregisterEvent("AUCTION_ITEM_LIST_UPDATE") AuctionScanning:UnregisterEvent("AUCTION_ITEM_LIST_UPDATE")
private.auctionHouseShown = false private.auctionHouseShown = false
DoCallback("INTERRUPTED") DoCallback("INTERRUPTED", private.data)
private:StopScanning() private:StopScanning()
elseif event == "AUCTION_ITEM_LIST_UPDATE" then elseif event == "AUCTION_ITEM_LIST_UPDATE" then
-- gets called whenever the AH window is updated (something is shown in the results section) -- gets called whenever the AH window is updated (something is shown in the results section)

2
TradeSkillMaster/Libs/LibAuctionScan-1.0/LibAuctionScan-1.0.lua

@ -522,7 +522,7 @@ do
if interrupted then if interrupted then
-- fires if the scan was interrupted -- fires if the scan was interrupted
DoCallback("SCAN_INTERRUPTED") DoCallback("SCAN_INTERRUPTED", status.data)
else else
-- fires if the scan completed sucessfully -- fires if the scan completed sucessfully
DoCallback("SCAN_COMPLETE", status.data) DoCallback("SCAN_COMPLETE", status.data)

2
TradeSkillMaster_AuctionDB/Modules/Scanning.lua

@ -161,6 +161,8 @@ local function FullScanCallback(event, ...)
-- NOTE: "SCAN_INTERRUPTED" is from LibAuctionScan-1.0, which isn't used -- NOTE: "SCAN_INTERRUPTED" is from LibAuctionScan-1.0, which isn't used
-- by TSM anymore, and "INTERRUPTED" is from "TSM/Auction/AuctionScanning.lua", -- by TSM anymore, and "INTERRUPTED" is from "TSM/Auction/AuctionScanning.lua",
-- which is what this scanner uses nowadays. -- which is what this scanner uses nowadays.
local data = ...
Scan:ProcessScanData(data)
Scan:DoneScanning() Scan:DoneScanning()
end end
end end

Loading…
Cancel
Save