![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#1 |
Planesman
![]() Join Date: Feb 2007
Location: Iron Coffin
Posts: 195
Downloads: 40
Uploads: 0
|
![]()
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 ![]() |
![]() |
![]() |
![]() |
#2 |
Ocean Warrior
![]() Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
|
![]()
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 |
![]() |
![]() |
![]() |
#3 |
Ocean Warrior
![]() Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
|
![]()
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 |
![]() |
![]() |
![]() |
#4 |
Planesman
![]() Join Date: Feb 2007
Location: Iron Coffin
Posts: 195
Downloads: 40
Uploads: 0
|
![]()
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 ![]() |
![]() |
![]() |
![]() |
|
|