Merge branch 'master' of https://github.com/shirsig/Aux-Addon
This commit is contained in:
@@ -120,6 +120,22 @@ function AuxBuyEntry_OnClick()
|
|||||||
PlaySound("igMainMenuOptionCheckBoxOn")
|
PlaySound("igMainMenuOptionCheckBoxOn")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function AuxBuyEntry_OnEnter()
|
||||||
|
local entryIndex = this:GetID()
|
||||||
|
local entry = entries[entryIndex]
|
||||||
|
|
||||||
|
local found, _, itemString = string.find(entry.itemLink, "^|%x+|H(.+)|h%[.+%]")
|
||||||
|
if(found) then
|
||||||
|
GameTooltip:SetOwner(this, "ANCHOR_RIGHT");
|
||||||
|
GameTooltip:SetHyperlink(itemString);
|
||||||
|
GameTooltip:Show();
|
||||||
|
|
||||||
|
if(EnhTooltip ~= nil) then
|
||||||
|
EnhTooltip.TooltipCall(GameTooltip, entry.name, entry.itemLink, entry.quality, entry.stackSize);
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
function processScanResults(rawData)
|
function processScanResults(rawData)
|
||||||
@@ -135,6 +151,7 @@ function processScanResults(rawData)
|
|||||||
buyoutPrice = rawDatum.buyoutPrice,
|
buyoutPrice = rawDatum.buyoutPrice,
|
||||||
itemPrice = rawDatum.buyoutPrice / rawDatum.count,
|
itemPrice = rawDatum.buyoutPrice / rawDatum.count,
|
||||||
quality = rawDatum.quality,
|
quality = rawDatum.quality,
|
||||||
|
itemLink = rawDatum.itemLink,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -66,6 +66,12 @@
|
|||||||
<TexCoords left="0" right="1.0" top="0.0" bottom="0.6"/>
|
<TexCoords left="0" right="1.0" top="0.0" bottom="0.6"/>
|
||||||
</HighlightTexture>
|
</HighlightTexture>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
|
<OnEnter>
|
||||||
|
AuxBuyEntry_OnEnter();
|
||||||
|
</OnEnter>
|
||||||
|
<OnLeave>
|
||||||
|
GameTooltip:Hide();
|
||||||
|
</OnLeave>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
AuxBuyEntry_OnClick()
|
AuxBuyEntry_OnClick()
|
||||||
</OnClick>
|
</OnClick>
|
||||||
|
|||||||
@@ -160,6 +160,8 @@ function processQueryResults()
|
|||||||
for i = 1, numBatchAuctions do
|
for i = 1, numBatchAuctions do
|
||||||
|
|
||||||
local name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner = GetAuctionItemInfo("list", i)
|
local name, texture, count, quality, canUse, level, minBid, minIncrement, buyoutPrice, bidAmount, highBidder, owner = GetAuctionItemInfo("list", i)
|
||||||
|
local itemLink = GetAuctionItemLink("list", i)
|
||||||
|
|
||||||
local duration = GetAuctionItemTimeLeft("list", i)
|
local duration = GetAuctionItemTimeLeft("list", i)
|
||||||
Aux_Scan_ClearTooltip()
|
Aux_Scan_ClearTooltip()
|
||||||
AuxScanTooltip:SetOwner(UIParent, "ANCHOR_NONE");
|
AuxScanTooltip:SetOwner(UIParent, "ANCHOR_NONE");
|
||||||
@@ -183,6 +185,7 @@ function processQueryResults()
|
|||||||
highBidder = highBidder,
|
highBidder = highBidder,
|
||||||
owner = owner,
|
owner = owner,
|
||||||
duration = duration,
|
duration = duration,
|
||||||
|
itemLink = itemLink,
|
||||||
page = currentPage,
|
page = currentPage,
|
||||||
pageIndex = i
|
pageIndex = i
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user