Thread Tools Display Modes
08-16-16, 01:19 AM   #1
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
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?
  Reply With Quote
08-16-16, 02:59 AM   #2
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
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.
  Reply With Quote
08-16-16, 03:05 AM   #3
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
Originally Posted by Kanegasi View Post
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.
  Reply With Quote
08-16-16, 04:06 AM   #4
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
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
__________________
Profile: Curse | Wowhead
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » About retrieving iLvl by scantip

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off