- Messages
- 1,468
- Country

The two gauges below are a switch and a light. When the gauge window is opened the switch is off (correct) and the light is on (incorrect). I have to cycle the switch on and off for the light and switch to then work in the correct sequence together. When I open the gauge window I want the switch to be off and also the light. So that when I put the switch to on the light follows suit!
vololiberista
vololiberista
Code:
<Gauge Name="Oxygen 100%" Version="1.0">
<Element>
<Select>
<Value>(G:Var1,bool)</Value>
<Case Value="0">
<Image Name="OX_100_OFF.bmp"/>
</Case>
<Case Value="1">
<Image Name="OX_100_ON.bmp"/>
</Case>
</Select>
</Element>
<Mouse>
<Tooltip>Oxygen Supply 100pc</Tooltip>
<Cursor Type="Hand"/>
<Click>
(G:Var1) 0 ==
if{
1 (>G:Var1,bool)
0 (>L:OXYGEN 100,number)
}
els{
0 (>G:Var1,bool)
1 (>L:Sound_button,enum)
1 1 (>L:OXYGEN 100,number)
}
1 (>L:Sound_button,enum)
</Click>
</Mouse>
</Gauge>
Code:
<Gauge Name="Oxygen Flow light" Version="1.0">
<Element>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
<Select>
<Value>(L:OXYGEN 100,number)</Value>
<Case Value="0">
<Image Name="OX_LIGHT_ON.bmp" Bright="Yes"/>
</Case>
<Case Value="1">
<Image Name="OX_LIGHT_OFF.bmp"/>
</Case>
</Select>
</Element>
</Gauge>


