Ok, coded in and working
Notice the ADDITIONAL INFO button located below the stats (length, width, mast, etc.):
Clicking that button will show the additional info:
The additional info text scrolls. To scroll the text place mouse in text and use mousewheel. Press CLOSE to close additional info and go back to stats.
@Magnum: here's how the NLL.cfg file looks now:
[Unit]
ClassName=LL
3DModelFileName=data/Sea/NLL/NLL
UnitType=102
MaxSpeed=13
Length=140.91
Width=21.35
Mast=26.18
Draft=8.20
Displacement=7170
DisplacementVariation=5
RenownAwarded=220
CrewComplement=40
SurvivalRate=70
SurvivalPercentage=40
RecManualCategory=Freighter
BowShape=Raked
Superstructure=Composite
Islands=None
ShowInRecognitionManual=Yes
[AdditionalInfo]
AIText=2,718 built by 17 shipyards located along the Atlantic, Pacific and Gulf coasts. Highest number (385) were built by Bethlehem-Fairfield Shipyards, Inc. in
Baltimore.| |The Liberty ships are between 400 and 450 feet long (120 - 140 m) and 56 feet (17.3 m) wide. They use a 2,500 horsepower steam engine to push them
through the water at 11 knots at a range of 23,000 miles (37,000 km). Liberty ships have five cargo holds, three forward of the engine room and two aft (in the
rear portion of the ship). Each could carry 10,800 deadweight tons (the weight of cargo a ship can carry) or 4,380 net tons (the amount of space available for
cargo and passengers).| |The crew quarters are located amidships (the middle portion of the ship). Crew consist of between 38 and 62 civilian merchant sailors,
and 21 to 40 naval personnel to operate defensive guns and communications equipment.| |The first of these new ships was launched on September 27, 1941. Based on a
British design, modified by the United States Maritime Commission to conform to American construction practices and to make it even quicker and cheaper to build.
The US version was designated 'EC2-S-C1': 'EC' for Emergency Cargo, '2' for a ship between 400 and 450 feet (120 and 140 m) long (Load Waterline Length), 'S' for
steam engines, and 'C1' for design C1.
;************ THE END ***********
Notice the AIText= entry. Any text after the equals sign will be shown in the additional info
Notice the | | entries. Those signify a blank line. A single | signifies new line (carriage return + linefeed)
EDIT:
I see one problem with our configuration: different languages! We should move this additional info to it's own file (something like NLL.ait located in the same folder as the NLL.cfg) so that users of other languages can make their own additional info texts. I'm going to change the code to do this. The new file should have the class name and .ait as the extension. So in this example the new file would be NLL.ait and it's contents would be:
[AdditionalInfo]
AIText=2,718 built by 17 shipyards located along the Atlantic, Pacific and Gulf coasts. Highest number (385) were built by Bethlehem-Fairfield Shipyards, Inc. in
Baltimore.| |The Liberty ships are between 400 and 450 feet long (120 - 140 m) and 56 feet (17.3 m) wide. They use a 2,500 horsepower steam engine to push them
through the water at 11 knots at a range of 23,000 miles (37,000 km). Liberty ships have five cargo holds, three forward of the engine room and two aft (in the
rear portion of the ship). Each could carry 10,800 deadweight tons (the weight of cargo a ship can carry) or 4,380 net tons (the amount of space available for
cargo and passengers).| |The crew quarters are located amidships (the middle portion of the ship). Crew consist of between 38 and 62 civilian merchant sailors,
and 21 to 40 naval personnel to operate defensive guns and communications equipment.| |The first of these new ships was launched on September 27, 1941. Based on a
British design, modified by the United States Maritime Commission to conform to American construction practices and to make it even quicker and cheaper to build.
The US version was designated 'EC2-S-C1': 'EC' for Emergency Cargo, '2' for a ship between 400 and 450 feet (120 and 140 m) long (Load Waterline Length), 'S' for
steam engines, and 'C1' for design C1.