I am trying to get the a/b lights working in my cockpit. In the gauge file I have:
<?xml version="1.0" encoding="UTF-8"?>
<SimBase.Document Type="AceXML" version="1,0">
<Descr>AceXML Document</Descr>
<Filename>Afterburner_1_State.xml</Filename>
<SimGauge.Gauge id="Gauge" ArtDirectory="C:\MyProgram Files\FS Design Tools\New Gauges\EE_Lightning">
<FloatPosition>0.000,0.000</FloatPosition>
<Element id="Afterburner_1_State">
<FloatPosition>0.000,0.000</FloatPosition>
<Select id="Select">
<Expression id="Expression">
<Script>(A:TURB ENG AFTERBURNER:1, bool)</Script>
</Expression>
<Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
<Image id="RedLight_20_Off.bmp" Name="RedLight_20_Off.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
<Image id="RedLight_20_On.bmp" Name="RedLight_20_On.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>
</SimGauge.Gauge>
</SimBase.Document>
The lights simply stay at the RedLight_20_Off state .
I suspect I have got the code wrong. Can anyone help me with this one please?
Many thanks,
klem
<?xml version="1.0" encoding="UTF-8"?>
<SimBase.Document Type="AceXML" version="1,0">
<Descr>AceXML Document</Descr>
<Filename>Afterburner_1_State.xml</Filename>
<SimGauge.Gauge id="Gauge" ArtDirectory="C:\MyProgram Files\FS Design Tools\New Gauges\EE_Lightning">
<FloatPosition>0.000,0.000</FloatPosition>
<Element id="Afterburner_1_State">
<FloatPosition>0.000,0.000</FloatPosition>
<Select id="Select">
<Expression id="Expression">
<Script>(A:TURB ENG AFTERBURNER:1, bool)</Script>
</Expression>
<Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
<Image id="RedLight_20_Off.bmp" Name="RedLight_20_Off.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
<Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
<Image id="RedLight_20_On.bmp" Name="RedLight_20_On.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>
</SimGauge.Gauge>
</SimBase.Document>
The lights simply stay at the RedLight_20_Off state .
I suspect I have got the code wrong. Can anyone help me with this one please?
Many thanks,
klem

