SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 09-28-07, 06:40 AM   #1
KrvKpt. Falke
Planesman
 
Join Date: Feb 2007
Location: Iron Coffin
Posts: 195
Downloads: 40
Uploads: 0
Default Newbie question(s) about menu_1024_768.ini

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

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
__________________

- improved with GWX and...too many to list them here
KrvKpt. Falke is offline   Reply With Quote
Old 09-28-07, 07:53 AM   #2
joegrundman
Ocean Warrior
 
Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
Default

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
__________________
"Enemy submarines are to be called U-Boats. The term submarine is to be reserved for Allied under water vessels. U-Boats are those dastardly villains who sink our ships, while submarines are those gallant and noble craft which sink theirs." Winston Churchill
joegrundman is offline   Reply With Quote
Old 09-28-07, 07:55 AM   #3
joegrundman
Ocean Warrior
 
Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
Default

I'd remove the vertslide function too, adding it last once you have everything else sorted
__________________
"Enemy submarines are to be called U-Boats. The term submarine is to be reserved for Allied under water vessels. U-Boats are those dastardly villains who sink our ships, while submarines are those gallant and noble craft which sink theirs." Winston Churchill
joegrundman is offline   Reply With Quote
Old 09-28-07, 08:26 AM   #4
KrvKpt. Falke
Planesman
 
Join Date: Feb 2007
Location: Iron Coffin
Posts: 195
Downloads: 40
Uploads: 0
Default

Seems more clear now, thank you!

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

__________________

- improved with GWX and...too many to list them here
KrvKpt. Falke is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.