View Single Post
05-24-20, 04:53 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Images are not really circular...

They are square/rectangular with the section to not be visible alpha'd out.

Alpha is simply the case of setting parts of the texture to not be visible. If the images didn't have the area around the circular area alpha'd out there would be a white section all around the image.

This is the player frame file for example:
https://www.townlong-yak.com/framexm...layerFrame.xml

And this is the section where the player's image is placed. Notice it is fully square and not round. The image that is fitted in will simply not show the part it doesn't want shown.

Lua Code:
  1. <Texture name="PlayerPortrait">
  2.           <Size x="64" y="64"/>
  3.           <Anchors>
  4.             <Anchor point="TOPLEFT" x="42" y="-12"/>
  5.           </Anchors>
  6.         </Texture>

So, as long as you have a texture that has the areas of the image to not be displayed set to alpha state of 0 and the areas you want displayed to an alpha state of 1 ( or any value above 0 for varying levels of visibility ) and some texture elements designed to hold that image. It should work fine.

I can't remember off hand which paint packages will work this way but I think I used to use Paint Shop Pro for alpha adjustments to images and I think they can create TGA images which were usable by WOW way back when.

I found this page which may help you create images, if it lets you save in tga format for use in wow. Otherwise you may need a converter tool to change from the file format to tga. If you have your own art package then you may be able to use this with the tools available in that art package.
https://www.thegunnysack.com/how-to-crop-circles/

Hopefully someone with more recent knowledge will be able to help further.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote