Originally Posted by Xubera
if your gsub above removes a texture... like
|TTexturePath therjunk:morejunk|t
is what your trying to remove, just do a
text = text:gsub("\124T.*\124t", "")
that removes the |T and |t and everything in between
|
BINGO
Thats exactly what its doing, removing the icon texture and all the garble in between. Thanks.
Torhal - I love how you refer to it all as a mess
The reason you do the gametooltip:show more then once is to make it update the gametooltip's size according to if the icon is shown or not, and since you can keep the cursor over a target and add/remove raid icons you need the size to update without cursoring off of the target. Best way i found to do that was to just make it show tooltip again. Another way although i could not get it to work is to get it the gametooltip onupdate script again but i tried get script and just running bliz's function and it did not work like one would think.