Buy Tab tooltips
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
|
||||
|
||||
Reference in New Issue
Block a user