|
|
|
@ -14,6 +14,7 @@ local resetData, summarySTCache, showCache, itemsReset, justBought = {}, {}, {}, |
|
|
|
local isScanning, doneScanningText, currentItem, GUI |
|
|
|
local isScanning, doneScanningText, currentItem, GUI |
|
|
|
local summaryST, auctionST, resetButtons |
|
|
|
local summaryST, auctionST, resetButtons |
|
|
|
local currentAuction |
|
|
|
local currentAuction |
|
|
|
|
|
|
|
local pendingBuyout |
|
|
|
|
|
|
|
|
|
|
|
function Reset:Show(frame) |
|
|
|
function Reset:Show(frame) |
|
|
|
summaryST = summaryST or Reset:CreateSummaryST(frame.content) |
|
|
|
summaryST = summaryST or Reset:CreateSummaryST(frame.content) |
|
|
|
@ -604,6 +605,10 @@ function Reset:RemoveCurrentAuction() |
|
|
|
|
|
|
|
|
|
|
|
scanData:RemoveRecord(row.index) |
|
|
|
scanData:RemoveRecord(row.index) |
|
|
|
itemsReset[row.itemString] = true |
|
|
|
itemsReset[row.itemString] = true |
|
|
|
|
|
|
|
if pendingBuyout then |
|
|
|
|
|
|
|
TSMAPI:FireEvent("TSM:AUCTIONCONTROL:ITEMBOUGHT", pendingBuyout) |
|
|
|
|
|
|
|
pendingBuyout = nil |
|
|
|
|
|
|
|
end |
|
|
|
Reset:UpdateAuctionST() |
|
|
|
Reset:UpdateAuctionST() |
|
|
|
|
|
|
|
|
|
|
|
if #auctionST.rowData == 0 then |
|
|
|
if #auctionST.rowData == 0 then |
|
|
|
@ -697,6 +702,11 @@ function Reset:BuyAuction() |
|
|
|
PlaceAuctionBid("list", mainIndex or altIndex, currentAuction.buyout) |
|
|
|
PlaceAuctionBid("list", mainIndex or altIndex, currentAuction.buyout) |
|
|
|
foundAuction = true |
|
|
|
foundAuction = true |
|
|
|
justBought[mainIndex or altIndex] = true |
|
|
|
justBought[mainIndex or altIndex] = true |
|
|
|
|
|
|
|
pendingBuyout = { |
|
|
|
|
|
|
|
itemString = currentAuction.itemString, |
|
|
|
|
|
|
|
count = currentAuction.count, |
|
|
|
|
|
|
|
buyout = currentAuction.buyout, |
|
|
|
|
|
|
|
} |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
resetButtons.buyout:Disable() |
|
|
|
resetButtons.buyout:Disable() |
|
|
|
@ -732,4 +742,4 @@ function Reset:FindCurrentAuctionForBuyout(itemString, buyout, count) |
|
|
|
end |
|
|
|
end |
|
|
|
end, 0.1) |
|
|
|
end, 0.1) |
|
|
|
Reset.isSearching = true |
|
|
|
Reset.isSearching = true |
|
|
|
end |
|
|
|
end |
|
|
|
|