View Single Post
05/06/18, 11:51 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
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