WoWInterface - View Single Post - No matter what I try I can't make proper Round/Hexagonal shaped 3D unit portraits
View Single Post
05-02-19, 01:51 PM   #7
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,991
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.
ESOUI AddOns | 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