RTP, on 15 April 2014 - 08:16 AM, said:
Mr. JTang:
Will be VERY helpful to us, the model developpers if you publish a list of the special names used into de cabs and the related variable.
P.e. SPEEDOMETER - speed - kmh
etc.
Cheers.
RTP.
The keywords are the same as used in an MSTS .cvf file, as well as the data range.
For example, the following is the first BRAKE_PIPE defined in DF11GA.cvf, which is used by my pilot model:
Dial (
Type ( BRAKE_PIPE DIAL )
Position ( 114 335 7 21 )
Graphic ( "DF11G_black.ACE" )
Style ( POINTER )
ScaleRange ( 0 1000 )
ScalePos ( 230 130 )
Units ( KILOPASCALS )
Pivot ( 14 )
DirIncrease ( 0 )
)
In the Cab.s file, the animation is defined as :
anim_node BRAKE_PIPE:0:0 (
controllers ( 1
tcb_rot ( 3
slerp_rot ( 0 -4.768488E-02 .1779626 -.9493904 .2543883 )
slerp_rot ( 1 -.1842405 0 0 .9828812 )
slerp_rot ( 2 -4.768504E-02 -.1779626 .9493904 .2543882 )
)
)
)
In the cabs.s file, we have a part defined as BRAKE_PIPE:0:0, which corresponds to the first brake_pipe defined in .cvf, and this is the first part of that instrument. It will be used to show 0-1000 (as defined in the line of ScaleRange), by using animations (so the 0 key corresponds to 0, 2 key corresponds to 1000), and will be using the same unit. Key 1 was added so the animation will rotate to the correct direction (0-1-2). For example, if the value is 200, the rotation will be proportionally defined as 20% between key 0 and 2.
For complex instruments, we can use multiple parts and name them as BRAKE_PIPE:0:0, BRAKE_PIPE:0:1, BRAKE_PIPE:0:2, etc.