ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Can we get Item definition displayed in tooltip? (https://www.esoui.com/forums/showthread.php?t=10054)

Masteroshi430 01/25/22 11:33 AM

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."

Baertram 01/25/22 12:44 PM

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.

Masteroshi430 01/25/22 01:08 PM

Quote:

Originally Posted by Baertram (Post 45225)
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.

Masteroshi430 01/25/22 01:18 PM

ah I found it it's :
GetItemLinkFlavorText(itemLink) :)

Baertram 01/25/22 02:18 PM

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_


All times are GMT -6. The time now is 06:40 AM.

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