Textures in GameTooltip
Hi,
I am trying to add a texture to GameTooltip. At the moment, it is placed in its default position, which is LeftTop corner. I found out GameTooltip:AddTexture also accepts an optional parameter, a structure TooltipTextureInfo. The link provides info on possible values but does not really explain how they work. I tried a couple of things. The best working code is when I change an anchor from LeftTop to RightTop: Lua Code:
but it moves an icon to the end of text line. What I would like is to align an icon to right upper corner. I asked about it on Discord and have been told GmaeTooltip may not necessarily be designed for such things. Maybe someone else in forum already had a similar problem. Thanks. |
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:
|
All times are GMT -6. The time now is 01:14 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI