- Messages
- 1,468
- Country

I have a gauge where the switch is in the "on" position when the panel is loaded (I want that). I would like the sound also to be on either when the panel is loaded or when the battery switch is thrown. Then I want to turn the sound off by turning off the switch.
I have probably got my xml knickers in a twist but
here is the current code:-
vololiberista
I have probably got my xml knickers in a twist but
here is the current code:-
vololiberista
Code:
<Element>
<Select>
<Value>(G:Var1,bool)</Value>
<Failures>
<SYSTEM_ELECTRICAL_PANELS Action="0"/>
</Failures>
<Case Value="0">
<Image Name="OH_SWITCH_2_On.bmp" ImageSizes="33,58"/>
</Case>
<Case Value="1">
<Image Name="OH_SWITCH_2_OFF.bmp" ImageSizes="33,58"/>
</Case>
</Select>
</Element>
<Mouse>
<Tooltip>Aircon Switch</Tooltip>
<Cursor Type="Hand"/>
<Click>
(G:Var1) 0 ==
if{
1 (>G:Var1,bool)
1 (>L:Sound_button,enum)
2 (>L:Sound_aircon,enum)
}
els{
0 (>G:Var1,bool)
0 (>L:Sound_aircon,enum)
}
1 (>L:Sound_button,enum)
</Click>
</Mouse>
</Gauge>
