Hi!
I'm creating a HUD gauge for an A7. But I have hit a problem. The HUD uses tape displays for the airspeed and altitude information.
I've already placed a MaskImage/Image combo with a shift to display the aircraft heading but now that I'm trying the same for the tape ruler I can't make it work. I can't even see the maskimage that I used.
The following is the code. Can anybody tell me if I'm doing something wrong?
The element LEFT TAPE is the one that should display the airspeed tape.
I will appreciate any help on this one. Thanks.
I'm creating a HUD gauge for an A7. But I have hit a problem. The HUD uses tape displays for the airspeed and altitude information.
I've already placed a MaskImage/Image combo with a shift to display the aircraft heading but now that I'm trying the same for the tape ruler I can't make it work. I can't even see the maskimage that I used.
The following is the code. Can anybody tell me if I'm doing something wrong?
Code:
<Element id="AIRSPEED DISPLAY">
<FloatPosition>0.000,140.000</FloatPosition>
<Visibility>(L:HUDScalesOff,boolean) 0 ==</Visibility>
<Element id="LEFT RULER">
<FloatPosition>20.000,0.000</FloatPosition>
<Image id="HUD Left Ruler.bmp" Name="HUD Left Ruler.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
</Image>
</Element>
<Element id="AIRSPEED INDICATOR">
<FloatPosition>0.000,750.000</FloatPosition>
<GaugeText id="GaugeText">
<Bright>True</Bright>
<FontColor>0x00FF00</FontColor>
<FontHeight>30</FontHeight>
<GaugeString>%( (A:AIRSPEED INDICATED, Knots) 100 / )%!3.0f!</GaugeString>
<HorizontalAlign>RIGHT</HorizontalAlign>
<Size>80,30</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
<Element id="LEFT TAPE">
<FloatPosition>79.000,9.000</FloatPosition>
<MaskImage id="HUD Ruler Bar Area Left.bmp" Name="HUD Ruler Bar Area Left.bmp">
</MaskImage>
<Image id="HUD Ruler Bar Left.bmp" Name="HUD Ruler Bar Left.bmp">
<Bright>True</Bright>
</Image>
<Shift id="Shift">
<Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>100.000</Maximum>
<Script>(A:AIRSPEED INDICATED, Knots) 100 %</Script>
</Expression>
<NonlinearityTable id="NonlinearityTable">
<NonlinearityEntry id="0">
<ExpressionResult>0.000</ExpressionResult>
<FloatPosition>0.000,731.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="50">
<ExpressionResult>50.000</ExpressionResult>
<FloatPosition>0.000,350.000</FloatPosition>
</NonlinearityEntry>
<NonlinearityEntry id="100">
<ExpressionResult>100.000</ExpressionResult>
<FloatPosition>0.000,0.000</FloatPosition>
</NonlinearityEntry>
</NonlinearityTable>
</Shift>
</Element>
<Element id="AIRSPEED MOD">
<FloatPosition>40.000,-30.000</FloatPosition>
<GaugeText id="GaugeText">
<Bright>True</Bright>
<FontColor>0x00FF00</FontColor>
<FontHeight>30</FontHeight>
<GaugeString>%( (A:AIRSPEED INDICATED, Knots) 100 % )%!2d!</GaugeString>
<Size>80,30</Size>
<Transparent>True</Transparent>
</GaugeText>
</Element>
</Element>
The element LEFT TAPE is the one that should display the airspeed tape.
I will appreciate any help on this one. Thanks.