- Messages
- 1,468
- Country

Is it possible to combine these two gauges?
Currently as seen here they are both separately activated by a click. What I have in mind if possible is:-
1. is to click shut the doors
2. Some time later (say a minute) the elements of the second which triggers a light and plays a sound to be activated automatically without being clicked.
Can this be done and if so how? Many thanks
vololiberista
Currently as seen here they are both separately activated by a click. What I have in mind if possible is:-
1. is to click shut the doors
2. Some time later (say a minute) the elements of the second which triggers a light and plays a sound to be activated automatically without being clicked.
Can this be done and if so how? Many thanks
vololiberista
Code:
<Gauge Name="Doorcontrol" Version="0.1">
<!-- DISPLAY =============================================== -->
<!-- Main Exit - Display -->
<Element>
<Visible>(A:CANOPY OPEN,enum) 0 > (A:CANOPY OPEN,enum) 1 < &&</Visible>
<Image Name="BLUE_ON.bmp" Bright="Yes"/>
<Position X="4.5" Y="0.5"/>
</Element>
<Element>
<Visible>(A:CANOPY OPEN,enum) 1 ==</Visible>
<Image Name="RED_ON2.bmp" Bright="Yes"/>
<Position X="1.5" Y="52.0"/>
</Element>
<!-- MOUSE BUTTONS ==================================================== -->
<Mouse>
<Help_none/>
<!-- Main Exit - Button -->
<Area Left="6" Top="6" Width="30" Height="65">
<Click> (>K:TOGGLE_AIRCRAFT_EXIT) 1 (>L:Sound_door,enum)</Click>
<Cursor Type="Hand"/>
</Area>
</Mouse>
</Gauge>
Code:
<Gauge Name="Cabin call 1" Version="1.0">
<Element>
<Select>
<Value>(L:CABIN CALL,number)</Value>
<Case Value="0">
<Image Name="SWAP.bmp"/>
</Case>
<Case Value="1">
<Image Name="SWAP.bmp"/>
</Case>
</Select>
</Element>
<Mouse>
<Tooltip>Cabin call (Pre-Taxi Check)</Tooltip>
<Cursor Type="Hand"/>
<Click Repeat="Yes">1
(L:CABIN CALL,number) ! (>L:CABIN CALL,number)
(L:CABIN CALL,number) 1 ==
if{
(P:local time, seconds) 0.1 + (>L:CAB LIGHT 1,number)
(P:local time, seconds) 20.5 + (>L:CAB LIGHT 2,number)
}
1 (>L:Sound_mes1,enum)
</Click>
</Mouse>
</Gauge>
