PDA

View Full Version : How can I move MapTarget.tga from F6 to F5 map?


verte
02-03-10, 04:55 PM
I need a bearing overlay circle on the F5 map, but not like the bearing overlay of e.g. "NSS_Uboat7b_shp.tga", which is zooming together with the map zoom (so you cannot read it in very low zoom), but a stable, non-zooming bearing overlay precisely like on the F6 map, when you click the "?" button (it stays the same size no matter which zoom you are using). It needs of course to turn together with the submarine.

So, to say short - I need to use the bearing overlay of F6 map on F5 map. How can I do this, can you help me?

I have found the options of F6 map "maptarget.tga" in the menu_1024_768.ini:

[G32 I31]
Name=Target
Type=1031;Stat bmp array
ItemID=0x32000003
ParentID=0x32000000
Pos=287,659,479,479
Color=0xFFFFFF80
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/maptarget.tga
Crop 0=0.0332031,0.0332031,0.935547,0.935547
MatFlags=0x9
TexFmt=0x9
Drag=false
BmpState=0
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

One more thing - it would be great to have it clickable (or key-pressed), like on f6 map, so you could use it when you want and hide if you didn't need it.

--------------------- edit --------------------------

I have found a button for this function, and copied those options to the [G31...] (navmap) branch:

[G31 I16]
Name=Help
Type=1032;Button
ItemID=0x321A0003
ParentID=0x321A0000
Pos=370,-1,40,40
Materials=4
Display=0;No stretch
Mat 0=data/menu/gui/maptools.tga
Crop 0=0.640625,0,0,0
Mat 1=data/menu/gui/maptools.tga
Crop 1=0.640625,0,0,0
Mat 2=data/menu/gui/maptools.tga
Crop 2=0.640625,0.160156,0,0
Mat 3=data/menu/gui/maptools.tga
Crop 3=0.640625,0.160156,0,0
MatFlags=0x1
TexFmt=0x9
Font=1
TextFlags=0x0
StatesColors=0xB0B0B0FF, 0xFF, 0xFFFFFFFF, 0xFFFFFFFF
;ToolTipText=2244


[G31 I17]
Name=Target
Type=1031;Stat bmp array
ItemID=0x32000003
ParentID=0x32000000
Pos=287,659,479,479
Color=0xFFFFFF80
Materials=1
Display=5;Linear&rotation
Mat 0=data/menu/gui/maptarget.tga
Crop 0=0.0332031,0.0332031,0.935547,0.935547
MatFlags=0x9
TexFmt=0x9
Drag=false
BmpState=0
NeedFocus=true
SelOne=false
IdGroup=0
StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF

I changed G32 to G31 and added successive numbers I16 and I17. I changed the "Pos=" of the button to the correct position of next button in navmap (OLC version). The efect - SH3 doesn't start... Any ideas?

---------

I don't understand the "ItemID's", but I suppose that here is something wrong?

I suppose the ItemID=0x321A0003 is connected with the ItemID=0x32000003 ? But I cannot have ItemID=0x321A0003 in [G31...], so SH3 doesn't start? Is it possible at all to have this button in F5 map? Or at least to bind this option to a key in Commands_en.cfg, so I could start it in F5 navmap?