View Single Post
07/16/14, 06:05 PM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
For item info, there's preconstructed ItemTooltip. You can find examples in ZOS UI scripts, if you can get those.
Lua Code:
  1. -- InitializeTooltip(tooltipControl, [anchorControl, anchorPoint, offsetX, offsetY])
  2. InitializeTooltip(ItemTooltip)
  3. ItemTooltip:SetBagItem(bagId, slotIndex)
  4. ClearTooltip(ItemTooltip)
There's a bunch of :Set* methods that fill the tooltip with appropriate info; since addon's don't have access to most of tooltip's contents, so you can't just put anything you want in there.
Also you can check addons like this one to see how you can add simple text lines to the bottom.
  Reply With Quote