Quantcast how to fire item window ? tooltip api ? not found how - ESOUI
Thread Tools Display Modes
05/06/18, 07:51 AM   #1
redgabber
AddOn Author - Click to view addons
Join Date: May 2017
Posts: 6
how to fire item window ? tooltip api ? not found how

Hi

i look to open the raw tooltip of an item. The window item, not only a mouse-on tooltip.

I read the api but not found something relevant like an hypothetic ItemOpenWindowLootTip like

is there a func ?

Last edited by redgabber : 05/06/18 at 08:27 AM.
  Reply With Quote
05/06/18, 11:51 AM   #2
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 1,539
Hi, you could search the esoui files online for ItemToolTip:
Example from furniture:
https://github.com/esoui/esoui/blob/...s_keyboard.lua

There are others too.

OnMouseEnter:
Lua Code:
  1. InitializeTooltip(ItemTooltip, control, RIGHT, -15, 0, LEFT)
  2. if bagId and slotIndex then
  3.   ItemTooltip:SetBagItem(bagId, slotIndex)
  4. end

OnMouseExit:
Lua Code:
  1. ClearTooltip(ItemTooltip)

If your inventory item at slotIndex 27 is a fire staff of maple you can use this script in the chat to show the itemtooltip near the 1st inventory row:
Lua Code:
  1. /script InitializeTooltip(ItemTooltip, ZO_PlayerInventoryList1Row1, RIGHT, -15, 0, LEFT) ItemTooltip:SetBagItem(1, 27)



Check this forum thread for more info how to put an ItemLink (you can get it via local itemLink = GetItemLink(bag, slotIndex)) to an tiemTooltip as well, or how to use popuptooltips:
http://www.esoui.com/forums/showthre...ht=ItemTooltip

Last edited by Baertram : 05/06/18 at 11:57 AM.
  Reply With Quote
05/06/18, 05:41 PM   #3
redgabber
AddOn Author - Click to view addons
Join Date: May 2017
Posts: 6
Thanks ! it helps

finally, ZO_PopupTooltip_SetLink(itemLink) do the trick

Last edited by redgabber : 05/06/18 at 06:11 PM.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » how to fire item window ? tooltip api ? not found how

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