View Single Post
05-02-19, 01:51 PM   #7
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
SetPortraitTexture() is what the default UI uses for the unitframe portraits. Just drop it in place for SetPortraitTextureFromCreatureDisplayID() in Elcius' example. This takes a UnitID instead of a number to generate an image from. For example, SetPortraitTexture(texture,"player") will render your own portrait. If the model updates, you have to call the function again to show the changes in your portrait.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote