Quantcast
Can we get Item definition displayed in tooltip? - ESOUI
Thread Tools Display Modes
01/25/22, 11:33 AM   #1
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 69
Can we get Item definition displayed in tooltip?

How do we get the item description which is displayed in tooltip?

e.g. for Lockpicks it's :
"Used to open many chest and doors.
Expanded upon use."

Last edited by Masteroshi430 : 01/25/22 at 12:29 PM.
  Reply With Quote
01/25/22, 12:44 PM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,059
Did you check the API Documentation Pxx.txt files for something like GetItem* Info or GetItemLink* Info, similar. Maybe there is some function returning the text as String parameter.
  Reply With Quote
01/25/22, 01:08 PM   #3
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 69
Originally Posted by Baertram View Post
Did you check the API Documentation Pxx.txt files for something like GetItem* Info or GetItemLink* Info, similar. Maybe there is some function returning the text as String parameter.
Yes I checked there is :

GetQuestItemTooltipText(*integer* _questItemId_)
** _Returns:_ *string* _tooltipText_

but I couldn't find one for a regular item.
  Reply With Quote
01/25/22, 01:18 PM   #4
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 69
ah I found it it's :
GetItemLinkFlavorText(itemLink)
  Reply With Quote
01/25/22, 02:18 PM   #5
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,059
Yeah, this one was it! Sorry, I initially thought it was

* GetItemInfo(*[Bag|#Bag]* _bagId_, *integer* _slotIndex_)
** _Returns:_ *textureName* _icon_, *integer* _stack_, *integer* _sellPrice_, *bool* _meetsUsageRequirement_, *bool* _locked_, *[EquipType|#EquipType]* _equipType_, *integer* _itemStyleId_, *[ItemQuality|#ItemQuality]* _functionalQuality_, *[ItemDisplayQuality|#ItemDisplayQuality]* _displayQuality_
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Can we get Item definition displayed in tooltip?

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