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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-23-08, 12:16 PM   #1
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default Need help for adding graphic to map

I have created a graphic i want to be displayed in the map like the current nomograph on the right side. I have started from that nomograph data and now the image succesfully displays, but I'm unable to determine how to change its location so that it is placed exactly in the centre of the map screen

Here is the current entry added to my 1024_menu.ini file:

[G31 I59]
Name=Plotter
Type=1030;Static bmp
ItemID=0x3100000f
ParentID=0x31000000
Pos=0,0,200,720
Zone=0 768 200 720 2 1 0x31000000 0.76 -0.02 0x3100000f 0 0 0 0
Color=0xFFFFFFFF
Materials=1
Display=2;Linear
Mat 0=data/menu/gui/layout/Plotter.tga
MatFlags=0x9
TexFmt=0x0

The file is now 200 wide x 720 high, though I might make it 600x600 somewhere in the future to add a graded circle around it. Now what must be changed so it gets centered on screen? Any help wellcomed!
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 06-23-08, 12:55 PM   #2
Digital_Trucker
Silent Hunter
 
Join Date: Jul 2007
Location: The Peach State
Posts: 4,171
Downloads: 141
Uploads: 10
Default

The best place to find out about how to adjust items in the menu.ini file is zAmboni's excellent tutorial here

The last two numbers in the Zone line will move the item a specified number of pixels, but where it ends up on the screen depends on the resolution that the user's game is set at. That's the easiest way to move things around, but it's also the least flexible.

zAmboni's tutorial explains what the other numbers in those menu.ini lines mean and what it takes to move things and resize them.
__________________

RSM-GIEP-Killflags-LV Tribute-Playable Elco __Peace be with you, Dave.

Digital_Trucker is offline   Reply With Quote
Old 06-23-08, 02:27 PM   #3
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 6,109
Downloads: 109
Uploads: 2


Default

Thanks I had already tried following that tutorial, but apparently some things changed in the later patches when compared to it. Anyway, after some experimenting I managed to guess the way it is changed, and have achieved the result I wanted Now off to write a tutorial and prepare it for public download
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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 03:35 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.