Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-29-18, 09:27 AM   #1
maqjav
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Feb 2012
Posts: 60
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!

Last edited by maqjav : 06-29-18 at 11:25 AM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Issue showing texture on string


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off