User manual

F4-BMS 2.0 Technical Manual
APPENDIX D: 2D COCKPIT ADDED
FEATURES
RENDERED NEEDLES
Gauge Needles can now be customized to suit individual aircraft cockpits. Example shown
below:
#733 DIAL
cyclebits = 0xffff;
numendpoints = 9;
points = -2.562 -3.002 -3.56 -4.032 -4.608 1.1 0.593 0.148 -0.506;
values = 0 5000 10000 15000 20000 25000 30000 35000 40000;
radius0 = 0;
radius1 = 70;
radius2 = 14;
color0 = 0xff000000;
color1 = 0xff000ec5;
color2 = 0xff0c0c7a;
renderneedle = 1;
srcloc = 2839 2728 2987 2878;;
destloc = 252 1113 399 1260;
callbackslot = 120;
persistant = 0;
#end
¿ renderneedle =1; is the new entry that will allow a texture to be rendered. Simply use
the source location of the texture in correlation with the destination location. Make sure
that both source and destination locations are the same size, i.e., 147 pixels by 147
pixels, or whatever the case may be. The base (center of rotation) of the needle/texture
also needs to be in the center of the source location box you define. If you have
overlapping needles (textures rather), the order in which they appear in the .dat file is
the order in which they are rendered. So for example if you wanted two texture needles
to be rendered on top of each other, the one you want to be on top of the other needs to
be listed second in the .dat file. Lastly, the textures need to be sized to the size of the
gauge. You can have higher resolution source graphics, but the “word” is down-sizing
them to fit in the destination location does not look as good.
¿ A small change was made to so that the fuel quantity needles will show the proper
amount of fuel in each of the two fuel tank systems (Forward-Right and Aft Left) when
73