I've been trying to teach myself XML for making gauges. I've successfully altered some of the default MS gauges for my own purpose; I've looked at lots of examples; and learned a lot from reading past discussions here. (Thanks!)
Below is a simple light gauge that will turn on when the flaps are deployed any amount. It's adapted from the MS Grumman Goose annunciator panel gauge that has lights like this. Right now the "Flaps_UP.bmp" displays just fine but the "Flaps_DN.bmp" does not replace it when flaps are deployed.
I'm stumped! Help please.
Steve
Below is a simple light gauge that will turn on when the flaps are deployed any amount. It's adapted from the MS Grumman Goose annunciator panel gauge that has lights like this. Right now the "Flaps_UP.bmp" displays just fine but the "Flaps_DN.bmp" does not replace it when flaps are deployed.
I'm stumped! Help please.
Steve
Code:
<Gauge Name="FlapLight" version="1.2">
<Element id="Flaps Light">
<FloatPosition>0.000,0.000</FloatPosition>
<Select>
<Expression>
<Script>(A:FLAPS HANDLE INDEX, Number) 0 ></Script>
</Expression>
<!-- Not equal zero therefore zero b/c flaps up -->
<Case id="False">
<ExpressionResult>0</ExpressionResult>
<Image Name="Flaps_UP.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<!-- Greater than zero so flaps down any amount-->
<Case id="True">
<ExpressionResult>1</ExpressionResult>
<Image Name="Flaps_DN.bmp">
<Transparent>True</Transparent>
<Bright>True</Bright>
</Image>
</Case>
</Select>
</Element>
</Gauge>




