Quantcast
WoWInterface - View Single Post - Textures in GameTooltip
View Single Post
07-04-19, 04:23 AM   #2
FranekW
A Cyclonian
 
FranekW's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 41
It turns out I had to use GameTooltip:AddDoubleLine() instead to create two columns. Also, in TooltipTextureInfo I changed "region" to "RightLine" to make an icon appeared at the right column. Now everything seems to work. This is the code:

Lua Code:
  1. -- Title
  2. tooltip:AddDoubleLine(label, " ", 1, 1, 1, 1, 1, 1)
  3. -- Texture
  4. local tooltipTextureInfo = {
  5.     anchor = Enum.TooltipTextureAnchor.RightTop,
  6.     margin = { left = 0, right = 0, top = 0, bottom = 0 },
  7.     region = Enum.TooltipTextureRelativeRegion.RightLine,
  8. }
  9. local pathto = iconfolder .. iconfile
  10. tooltip:AddTexture(pathto, tooltipTextureInfo)

Last edited by FranekW : 07-04-19 at 08:26 PM.
  Reply With Quote