Merge branch 'master' of https://github.com/shirsig/Aux-Addon
This commit is contained in:
@@ -120,6 +120,22 @@ function AuxBuyEntry_OnClick()
|
||||
PlaySound("igMainMenuOptionCheckBoxOn")
|
||||
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)
|
||||
@@ -135,6 +151,7 @@ function processScanResults(rawData)
|
||||
buyoutPrice = rawDatum.buyoutPrice,
|
||||
itemPrice = rawDatum.buyoutPrice / rawDatum.count,
|
||||
quality = rawDatum.quality,
|
||||
itemLink = rawDatum.itemLink,
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
@@ -66,6 +66,12 @@
|
||||
<TexCoords left="0" right="1.0" top="0.0" bottom="0.6"/>
|
||||
</HighlightTexture>
|
||||
<Scripts>
|
||||
<OnEnter>
|
||||
AuxBuyEntry_OnEnter();
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
GameTooltip:Hide();
|
||||
</OnLeave>
|
||||
<OnClick>
|
||||
AuxBuyEntry_OnClick()
|
||||
</OnClick>
|
||||
|
||||
@@ -160,6 +160,8 @@ function processQueryResults()
|
||||
for i = 1, numBatchAuctions do
|
||||
|
||||
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)
|
||||
Aux_Scan_ClearTooltip()
|
||||
AuxScanTooltip:SetOwner(UIParent, "ANCHOR_NONE");
|
||||
@@ -183,6 +185,7 @@ function processQueryResults()
|
||||
highBidder = highBidder,
|
||||
owner = owner,
|
||||
duration = duration,
|
||||
itemLink = itemLink,
|
||||
page = currentPage,
|
||||
pageIndex = i
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user