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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-31-10, 08:11 AM   #1
Flopper
Weps
 
Join Date: Jan 2010
Location: Asheville, NC, USA
Posts: 356
Downloads: 107
Uploads: 0
[TEC] Menu editing: Understanding crop

All I am attempting to do here is understand what the crop numbers mean.

Here's a section from menu_1024_768.ini:

Code:
[G31 I20]
Name=Zoom in
Type=1032;Button
ItemID=0x311A0001
ParentID=0x311A0000
Pos=1,-1,40,40
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/maptools.tga
Crop 0=0,0,0,0
Mat 1=data/menu/gui/maptools.tga
Crop 1=0,0,0,0
Mat 2=data/menu/gui/maptools.tga
Crop 2=0,0.160156,0,0
Mat 3=data/menu/gui/maptools.tga
Crop 3=0,0.160156,0,0
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
;ToolTipText=2242
Here is a blowup of a test version of maptools.tga:


I see we are working with the nav map tools, which all come from the same image.

Okay, here are the 4 crops:
Crop 0=0,0,0,0
Crop 1=0,0,0,0
Crop 2=0,0.160156,0,0
Crop 3=0,0.160156,0,0

I'm guessing this is some kind of coordinate system, but I can't put it together. I see that we are working with the "zoom in", which is in the upper left. The 0,0,0,0 may mean start at the upper left corner of the whole image, perhaps. The 0.160156 may mean about 16% (1/6) of the way down the image, which makes sense.

But if that is true, where is the horizontal X component of these coordinates? Also, sometimes there is only one crop, crop 0. All this is driving me batty.

Any help is greatly appreciated.
__________________

Flopper is offline   Reply With Quote
 


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 12:29 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.