View Single Post
  #2  
Unread 07-02-2006, 11:41 PM
michsageman242's Avatar
michsageman242 michsageman242 is offline
An Undead Settler
Interface Author - Click to view interfaces
 
Join Date: Jan 2006
Server: Nektulos
Posts: 90
Cool Answer

My guess is your alpha channel is all black atm. You need to mask your image and make an alpha channel. The alpha channel tells eq2 what to show and what not to. I personally use photoshop cs with the dds plug in. Its the best at working with images. Look through the forums. Dolby has posted a good link to the plugins and several people have described how to make an alpha channel. Whatever you want to show in the dds file you must mask and fill in white. The dds file will be a seperate image file that your xml mod will look at to pull the image from. You will add the code in your xml to grab this file from a specific location on that files page. Here's how: You will add an image to the xml under styles tab. As your SourceResource you will type the path to the file inside your UI folder (i.e. /images/icon/yourfilename.dds). Under location put the x,y coordinates where the upper left starting point is (i.e. 18,0). The size is the width and length of your pic (i.e. 512,512). Then do sourcerect. This is the corners of your pic (i.e. 0,0,512,512). You want to make sure you have visible=true as well. Thats about it. This will pull the dds pic into you xml as long as your dds is made correctly with the alpha channel.

Sage

Last edited by michsageman242 : 07-02-2006 at 11:43 PM.
Reply With Quote