TurboCompound
Resource contributor
- Messages
- 190
I have decided to take a crack at XML Gauge making, using the tutorials at FS2X.
I made a basic Korry Switch that will light up when clicked, but I want to take it to the next level.
How can I add a condition so that the switch will not light up if the Aircraft Battery is not on?
Thanks
I made a basic Korry Switch that will light up when clicked, but I want to take it to the next level.
Code:
<Gauge Name="CL6_APU_Fuel" Version="0.1">
<Image Name="APU_Panel.bmp"/>
<Element>
<Position X="221" Y="52"/>
<Select>
<Value>(L:APU_FuelSOV)</Value>
<Case Value="0">
<Image Name="FuelValveClosed.bmp"/>
</Case>
<Case Value="1">
<Image Name="FuelValveOpen.bmp"/>
</Case>
</Select>
</Element>
<Mouse>
<Area Left="220" Right="284" Top="52" Bottom="116">
<Tooltip>APU Fuel Valve</Tooltip>
<Cursor Type="Hand"/>
<Click>(L:APU_FuelSOV,Bool) ! (>L:APU_FuelSOV,Bool)</Click>
</Area>
</Mouse>
</Gauge>
How can I add a condition so that the switch will not light up if the Aircraft Battery is not on?
Thanks



