another small bugfix
This commit is contained in:
@@ -36,7 +36,11 @@ function AuxBuySearchButton_OnClick()
|
|||||||
record_auction(auction_item.name, stack_size, auction_item.buyout_price, auction_item.quality, auction_item.owner, auction_item.itemlink)
|
record_auction(auction_item.name, stack_size, auction_item.buyout_price, auction_item.quality, auction_item.owner, auction_item.itemlink)
|
||||||
end,
|
end,
|
||||||
on_complete = function()
|
on_complete = function()
|
||||||
|
entries = entries or {}
|
||||||
Aux_Buy_ScrollbarUpdate()
|
Aux_Buy_ScrollbarUpdate()
|
||||||
|
end,
|
||||||
|
on_abort = function()
|
||||||
|
entries = nil
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@@ -110,11 +114,13 @@ function AuxBuyBuySelectedButton_OnClick()
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
on_complete = function()
|
on_complete = function()
|
||||||
|
entries = entries or {}
|
||||||
Aux_Buy_ScrollbarUpdate()
|
Aux_Buy_ScrollbarUpdate()
|
||||||
AuxBuySearchButton:Enable()
|
AuxBuySearchButton:Enable()
|
||||||
Aux_Buy_ShowReport(true, orderedCount, purchasedCount)
|
Aux_Buy_ShowReport(true, orderedCount, purchasedCount)
|
||||||
end,
|
end,
|
||||||
on_abort = function()
|
on_abort = function()
|
||||||
|
entries = nil
|
||||||
AuxBuySearchButton:Enable()
|
AuxBuySearchButton:Enable()
|
||||||
Aux_Buy_ShowReport(false, orderedCount, purchasedCount)
|
Aux_Buy_ShowReport(false, orderedCount, purchasedCount)
|
||||||
end
|
end
|
||||||
@@ -178,7 +184,7 @@ end
|
|||||||
|
|
||||||
function Aux_Buy_ScrollbarUpdate()
|
function Aux_Buy_ScrollbarUpdate()
|
||||||
if entries and getn(entries) == 0 then
|
if entries and getn(entries) == 0 then
|
||||||
Aux.sell.set_message("No auctions were found")
|
Aux.buy.set_message("No auctions were found")
|
||||||
else
|
else
|
||||||
AuxBuyMessage:Hide()
|
AuxBuyMessage:Hide()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -77,17 +77,23 @@ function Aux.sell.AuctionsCreateAuctionButton_OnClick()
|
|||||||
end
|
end
|
||||||
|
|
||||||
Aux.post.start(
|
Aux.post.start(
|
||||||
currentAuction.name,
|
name,
|
||||||
currentAuction.stackSize,
|
stack_size,
|
||||||
AuctionFrameAuctions.duration,
|
AuctionFrameAuctions.duration,
|
||||||
MoneyInputFrame_GetCopper(StartPrice),
|
MoneyInputFrame_GetCopper(StartPrice),
|
||||||
MoneyInputFrame_GetCopper(BuyoutPrice),
|
buyout_price,
|
||||||
currentAuction.stackCount,
|
currentAuction.stackCount,
|
||||||
function(posted)
|
function(posted)
|
||||||
for i = 1, posted do
|
for i = 1, posted do
|
||||||
record_auction(name, stack_size, buyout_price, duration, UnitName("player"))
|
record_auction(name, stack_size, buyout_price, duration, UnitName("player"))
|
||||||
end
|
end
|
||||||
auxSellEntries[name].selected = entry
|
if auxSellEntries[name] then
|
||||||
|
for _, entry in ipairs(auxSellEntries[name]) do
|
||||||
|
if entry.buyout_price == buyout_price and entry.stack_size == stack_size then
|
||||||
|
auxSellEntries[name].selected = entry
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
Aux_UpdateRecommendation()
|
Aux_UpdateRecommendation()
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user