WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Issue showing texture on string (https://www.wowinterface.com/forums/showthread.php?t=56312)

maqjav 06-29-18 09:27 AM

Issue showing texture on string
 
Hello.

I have a list of items and I'm trying to show their icons on a tooltip using LibQ-Tip.

For every item I get its information calling GetItemInfo(itemID), and with the texture received I add a new cell to my tooltip:

Code:

tooltip:SetCell(line, i, "|T"..iconFileDataID..":24|t", nil, "CENTER", 1, nil, nil, nil, nil, 24)
All the icons will be rendered except the last one (or 2). I guess it's a timing issue, perhaps the string is rendered before the icon is fetched or something like that?


SOLUTION:
Found the problem, my index was overriding the last position with an empty space, that's why the icon was being lost.
I cannot delete this post, so please, someone with privileges do it ;)

Thanks!

jeffy162 06-29-18 09:52 PM

This post probably won't get deleted. It's informative, and that's why. Someone else might have the same (or similar) problem, and come here (to this site) looking for a solution.

Seerah 06-30-18 03:38 PM

But I will move it to the right forum. ;)


All times are GMT -6. The time now is 02:01 AM.

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