View Single Post
Old 03-01-07, 08:30 PM   #837
Steppenwolf
中国水兵
 
Join Date: Jul 2005
Posts: 278
Downloads: 0
Uploads: 0
Default

Haven't tried this myself, but here are a couple of quotes from geralt, who really knows his way around the menu_1024_768.ini file, when he was explaining to someone how to change text colors on the periscope screen. The G13 blocks are the U-boat Aces page, so you may want to play around with those blocks:

from geralt quote 1:
"the structure of this file could look a bit confusing but in fact it's pretty simple

[G26 I23]; g26 means 'group attack scope' this is specified in the beginning of the file, I23 is item number
Name=Aft tubes text; name of the block for good orientation
Type=1029;Static text; type static text means not clickable text
ItemID=0x26110002; don't care for this time
;ItemID=0x26110003
ParentID=0x26110000; don't care for this time
Pos=3,-7,85,36; position in pixels on the screen 3 on axis x, -7 on y, 85,36 is the size of this static text array again in pixels
Color=0xB4B4B4FE; simply color in hex (RRGGBB) of the displayed text B4B4B4 is ligt grey
Font=5; type of used font... fonts are specified in the beginning of the file e.g. Font5=DATA/Menu/Fonts/FPHunt15.tga
Text=2012; the displayed text is in en_menu.txt where 2012=AFT tUBES
TextFlags=0x15

[G26 I24]
Name=Bkgr
Type=1030;Static bmp; display some bmp
ItemID=0x26110001
;ItemID=0x26110002
ParentID=0x26110000
Pos=3,-7,85,37
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/Periscope.tga; goto periscope.tga
Crop 0=0.773438,0.808594,0.0566406,0.0273438; crop this area
MatFlags=0x21
TexFmt=0x9

as a result of the 2 blocks above you can see this in the game:




Quote 2:
Basically the menu_1024_768.ini (menu1024 in further text) is resposible for all non 3D rendered graphics (all F* screens menu screens etc.).
All examples are from my tweaked menu1024 your values could differ.

it's difficult where to start so try it from the beginning:

Quote:
[Fonts]
Fonts=19
Font0=DATA/Menu/Fonts/FPHunt26.tga
Font1=DATA/Menu/Fonts/FPCond14.tga
Font3=DATA/Menu/Fonts/FPHunt38.tga
Font4=DATA/Menu/Fonts/FPHunt12.tga
Font5=DATA/Menu/Fonts/FPHunt15.tga
Font6=DATA/Menu/Fonts/FPSmall.tga
.
.
.
etc.

here are specified the fonts used in game
in some block is written e.g. 'font=4' - it means the game will use the font stored FPHunt12.tga file
You can view all font tga's in many various editors the only condition is the are capable to show the alpha channel

small example of some game fonts:



but something about colors...
as is said above the color is specified as a combination of hex values 0xRRGGBBFF, the last two letters FF means the opacity/lightness, FF is 100% opacity/max visibility when 00 is invisible
so
color=0xFF0000FF is red
color=0x00FF00FF is green
color=0x0000FFFF is blue
color=0xFFFFFFFF is white
color=0x000000FF is black
color=0x222222FF is dark grey
color=0xBBBBBBFF is light grey
etc.
Steppenwolf is offline   Reply With Quote