PDA

View Full Version : Need help for adding graphic to map


Hitman
06-23-08, 12:16 PM
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 :damn:

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! :up:

Digital_Trucker
06-23-08, 12:55 PM
The best place to find out about how to adjust items in the menu.ini file is zAmboni's excellent tutorial here (http://www.subsim.com/radioroom/showthread.php?p=496713#post496713)

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.

Hitman
06-23-08, 02:27 PM
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 :D Now off to write a tutorial and prepare it for public download :up: :up: