Log in

View Full Version : Newbie question(s) about menu_1024_768.ini


KrvKpt. Falke
09-28-07, 06:40 AM
Ive tried adding some new/changing existing elements of gui in sh3, but i don't know what positioning in menu1024.ini is about:

[G31 I2]
Name=Buttons
Type=1026;Menu group
ItemID=0x311A0000
ParentID=0x31000000
Pos=606,769,414,42
Color=0xFFFFFFFF
VertSlide=30

I know that it determines position of objects/group of object on screen, and i know that it is expressed in pixels but no metter how much i am trying i cannot understand it:oops:

Second question is about these lines:

Mat 0=data/menu/gui/maptools.tga
Crop 0=0.640625,0,0.3125,0.15625
Mat 1=data/menu/gui/maptools.tga
Crop 1=0.640625,0.160156,0.3125,0.15625

How i can determine those values?

Ive tried to do it in photoshop and corel photo paint (by using a ruler) by my results where entirely different...

Can someone explain it to me? Think of me as a 5 year old kid who wants to understand it :lol:

joegrundman
09-28-07, 07:53 AM
Pos file:

The first two numbers represent the starting point of the object in terms of x and y respectively. The second two numbers represent the number of pixels to extend the field of the object in terms of x and y respectively.

in your example

Start at across 606, down 769 and stretch across414 and down 42

This is relative to the position of the parent id, and it is easy to make a basic mistake that could end up with the object off the screen completely.

I'd start by making very small changes relative to a known object and see how it moves around, slowly nudging it to where you want it.

Crop:

The numbers are expressing a percentage of the tga image that is to be cropped. You can selcet the navigator of photoshop to express your location in terms of percentage.

If you are adding images, it's easiest to make it a separate tga for each image and write Cop 0=0,0,1,1

joegrundman
09-28-07, 07:55 AM
I'd remove the vertslide function too, adding it last once you have everything else sorted

KrvKpt. Falke
09-28-07, 08:26 AM
Seems more clear now, thank you!

Now im goin to mess a little with that menu.ini and see what comes out.

:up: