some more polish for the buy tab
This commit is contained in:
@@ -25,7 +25,7 @@ end
|
|||||||
function condensedSelection()
|
function condensedSelection()
|
||||||
local selection = {}
|
local selection = {}
|
||||||
for entry,_ in pairs(selectedEntries) do
|
for entry,_ in pairs(selectedEntries) do
|
||||||
local key = "_"..entry.stackSize.."_"..entry.buyoutPrice
|
local key = entry.name.."_"..entry.stackSize.."_"..entry.buyoutPrice
|
||||||
|
|
||||||
if selection[key] then
|
if selection[key] then
|
||||||
selection[key] = selection[key] + 1
|
selection[key] = selection[key] + 1
|
||||||
@@ -54,7 +54,7 @@ function AuctionatorBuyBuySelectedButton_OnClick()
|
|||||||
Auctionator_Scan_Start{
|
Auctionator_Scan_Start{
|
||||||
query = searchQuery,
|
query = searchQuery,
|
||||||
onReadDatum = function(datum)
|
onReadDatum = function(datum)
|
||||||
local key = "_"..datum.stackSize.."_"..datum.buyoutPrice
|
local key = datum.name.."_"..datum.stackSize.."_"..datum.buyoutPrice
|
||||||
if selection[key] then
|
if selection[key] then
|
||||||
|
|
||||||
PlaceAuctionBid("list", datum.pageIndex, datum.buyoutPrice)
|
PlaceAuctionBid("list", datum.pageIndex, datum.buyoutPrice)
|
||||||
@@ -76,12 +76,10 @@ function AuctionatorBuyBuySelectedButton_OnClick()
|
|||||||
processScanResults(data)
|
processScanResults(data)
|
||||||
Auctionator_Buy_ScrollbarUpdate()
|
Auctionator_Buy_ScrollbarUpdate()
|
||||||
AuctionatorBuySearchButton:Enable()
|
AuctionatorBuySearchButton:Enable()
|
||||||
AuctionatorBuyBuySelectedButton:Enable()
|
|
||||||
end,
|
end,
|
||||||
onAbort = function()
|
onAbort = function()
|
||||||
Auctionator_Log(string.format("[Auctionator] Final report: %i out of %i auctions purchased", purchasedCount, selectedCount))
|
Auctionator_Log(string.format("[Auctionator] Final report: %i out of %i auctions purchased", purchasedCount, selectedCount))
|
||||||
AuctionatorBuySearchButton:Enable()
|
AuctionatorBuySearchButton:Enable()
|
||||||
AuctionatorBuyBuySelectedButton:Enable()
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@@ -134,6 +132,12 @@ function Auctionator_Buy_ScrollbarUpdate()
|
|||||||
AuctionatorBuyMessage:Hide()
|
AuctionatorBuyMessage:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if Auctionator_SetSize(selectedEntries) > 0 then
|
||||||
|
AuctionatorBuyBuySelectedButton:Enable()
|
||||||
|
else
|
||||||
|
AuctionatorBuyBuySelectedButton:Disable()
|
||||||
|
end
|
||||||
|
|
||||||
local line -- 1 through 15 of our window to scroll
|
local line -- 1 through 15 of our window to scroll
|
||||||
local dataOffset -- an index into our data calculated from the scroll offset
|
local dataOffset -- an index into our data calculated from the scroll offset
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user