EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   DDS/Graphics Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=31)
-   -   SourceRect dimensions (https://www.eq2interface.com/forums/showthread.php?t=4915)

Kamintar 11-21-2005 01:33 AM

SourceRect dimensions
 
Hey guys. Just started looking in depth into UI creation, and was wondering how you guys get the dimensions for the SourceRect for images? Do you guys just edit the image .DDS file within the already specified dimensions or can I make my own file and use that instead?

Is there an easy way (or what is THE way) to get the dimensions needed?

Sorak 11-21-2005 08:50 AM

If you use the SOE provided UIBuilder you can double click the "SourceRec" lable and it will pop open another window with the graphic that is in the "SourceResource" lable. Once the window is open you can drag the rectangle around the part of your image you want to display. Close the window and it will update the SourceRec info as needed.

eg:
SourceRec = 000,000,000,000
SourceResource = imageFolder/yourImage.dds



all dds file must be divisable by 2
eg: 32x32, 64x64, 128x128, 256x256, 512x512, 1024x1024... and so on... I believe dimensions like 256x512 will work also.

I started to make a program to allow those who wish to edit the xml in a text editor, extract SourceRecs. I only got as far as getting the image to display in a window. Have to work on finishing it, some day. :P

xriscarter 05-31-2006 10:22 AM

Sorry to dig this old one up but I do have this same question.....

The only difference is i HATE using the uibuilder...I like to use note pad for coding and photoshop for the gfxs is ther anyway that I can get the "SourceRect" with only these? I see that there is always 4 "numbers" (eg 00,12,30,35) so I would guess that this is just the pixel count.....

The real question is the format of the numbers....is it left side, top, right side, bottom?


EDIT: Man I have not done and gfxs since the days of D2lod moding...lol....anyone remember how to get photoshop to show your curser placement in Pixels?

Landiin 08-06-2006 11:23 AM

Quote:

Originally Posted by xriscarter
The real question is the format of the numbers....is it left side, top, right side, bottom?

left, top, right, bottm is the order

for you curser pos its F3 'INFO"


All times are GMT -5. The time now is 11:17 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI