ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   how to fire item window ? tooltip api ? not found how (https://www.esoui.com/forums/showthread.php?t=7760)

redgabber 05/06/18 07:51 AM

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 ?

Baertram 05/06/18 11:51 AM

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

redgabber 05/06/18 05:41 PM

Thanks ! it helps

finally, ZO_PopupTooltip_SetLink(itemLink) do the trick :)


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

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