now extracting the charges from the tooltip and using them in place of the stack size when available, also some minor ui adjustments

This commit is contained in:
Manuel Simon Hirsig
2015-09-10 03:30:33 +02:00
parent 70ee39d110
commit 5e513253cb
6 changed files with 16 additions and 9 deletions
+8 -2
View File
@@ -122,11 +122,17 @@ function processQueryResults()
local name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner = GetAuctionItemInfo("list", i)
local duration = GetAuctionItemTimeLeft("list", i)
AuctionatorScanTooltip:SetOwner(UIParent, "ANCHOR_NONE");
AuctionatorScanTooltip:SetAuctionItem("list", i)
AuctionatorScanTooltip:Show()
local chargesLabel = getglobal("AuctionatorScanTooltipTextLeft"..4):GetText()
local chargesString = gsub(chargesLabel and chargesLabel or "","%D", "")
local charges = tonumber(chargesString)
local scanDatum = {
local scanDatum = {
name = name,
texture = texture,
stackSize = count,
count = charges and charges or count,
quality = quality,
canUse = canUse,
level = level,