diff --git a/buy.lua b/buy.lua index 4f7a80a..cc710d8 100644 --- a/buy.lua +++ b/buy.lua @@ -269,7 +269,6 @@ function Aux_Buy_ScrollbarUpdate() end function report(completed, item_name, ordered_count, progress) - AuxBuyReport:Show() AuxBuyReportHTML:SetText(string.format( [[ @@ -297,5 +296,7 @@ function Aux_Buy_ScrollbarUpdate() )) AuxBuyReportHTML:SetSpacing(3) + + AuxBuyReport:Show() end end diff --git a/sell.lua b/sell.lua index 64159ec..e75709b 100644 --- a/sell.lua +++ b/sell.lua @@ -10,7 +10,7 @@ local currentAuction ----------------------------------------- -local record_auction, undercut, ItemType2AuctionClass, SubType2AuctionSubclass, set_message +local record_auction, undercut, ItemType2AuctionClass, SubType2AuctionSubclass, set_message, report ----------------------------------------- @@ -94,7 +94,7 @@ function Aux.sell.AuctionsCreateAuctionButton_OnClick() end end end - Aux_UpdateRecommendation() + report(name, stack_size, buyout_price, posted) end ) else @@ -508,3 +508,28 @@ function SubType2AuctionSubclass(auctionClass, itemSubtype) end end end + +----------------------------------------- + +function report(item_name, stack_size, buyout_price, posted) + AuxBuyReportHTML:SetText(string.format( + [[ + + +

Aux Sell Report


+

+ %i %i-stacks of %s posted for %i each +

+ + + ]], + posted, + stack_size, + item_name, + buyout_price + )) + + AuxBuyReportHTML:SetSpacing(3) + + AuxBuyReport:Show() +end