WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   About retrieving iLvl by scantip (https://www.wowinterface.com/forums/showthread.php?t=54219)

siweia 08-16-16 01:19 AM

About retrieving iLvl by scantip
 
For those items from timewraped instance or heirlooms, most of the gametooltip addon try to retrieve iLvl by creating a scantip. Same thing happens in libStub,
Code:

scanningTooltip = _G.CreateFrame("GameTooltip", "LibItemUpgradeInfoTooltip", nil, "GameTooltipTemplate")
scanningTooltip:SetOwner(_G.WorldFrame, "ANCHOR_NONE")

Why don't they retrieve all the item levels from this scantip thing?
They won't have to update the upgrade table anymore if do so.
What's the disadvantage of the scantip?

Kanegasi 08-16-16 02:59 AM

From what I understand, scanning tooltips on special items such as upgrades, timewarped, etc doesn't actually return the item level you are looking at on the normal tooltip.

siweia 08-16-16 03:05 AM

Quote:

Originally Posted by Kanegasi (Post 317949)
From what I understand, scanning tooltips on special items such as upgrades, timewarped, etc doesn't actually return the item level you are looking at on the normal tooltip.

Nope, all the items would return the right levels by scantip.
but they just retrieve timewarped and heirlooms by scantip, others by upgradeTable currently.

Vlad 08-16-16 04:06 AM

If you only supply itemID then you will get the plain version. These days there are modifiers in the item string that adds these labels like Timewalking or Mythic, item level upgrades, and so on.

I am sure if you provide the proper data to the tooltip, it will render the expected tooltip that you can scan. Note that it shows data based on your character and specialization, things like class trinkets will not show anything for you, if it's not your class. :P


All times are GMT -6. The time now is 12:35 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI