View Single Post
06-29-16, 12:32 AM   #7
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by sezz View Post
http://www.wowinterface.com/forums/s...ad.php?t=53734

Problem is that most methods in C_TransmogCollection only work for items the current character can equip. :/
Ah you came up with the same solution I did, but C_TransmogCollection.GetAppearanceSourceInfo actually does return information for items you can't equip on the current character whereas C_TransmogCollection.GetAppearanceInfoBySource does not.

That simplifies things because it also tells you whether you've collected the appearance, I'll update my post to use that instead.

One thing I noticed is that this doesn't necessarily return information the first time you call it. It seems to be because the model won't equip the item if it hasn't been cached, so it may be necessary to cache the item and issue a callback when it's available, but that shouldn't be an issue if you're just adding text to the item's tooltip since the tooltip won't populate if the item hasn't been cached yet.

Last edited by semlar : 06-29-16 at 12:49 AM.