reporting for posting

This commit is contained in:
Simon Hirsig
2015-09-27 18:48:14 +02:00
parent baab07d496
commit 92f2d71131
2 changed files with 29 additions and 3 deletions
+2 -1
View File
@@ -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
+27 -2
View File
@@ -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(
[[
<html>
<body>
<h1>Aux Sell Report</h1><br/>
<p>
%i %i-stacks of %s posted for %i each
</p>
</body>
</html>
]],
posted,
stack_size,
item_name,
buyout_price
))
AuxBuyReportHTML:SetSpacing(3)
AuxBuyReport:Show()
end