- Messages
- 1,084
- Country

With much experimentation this afternoon for about 4 hours I have been able to make the fire extinguisher gauges for both engines for the ERJ I have been trying to make. Only one problem...I would like the bright handle to appear and the "fireloop.wav" which is in FSX sounds folder to sound when the fire is detected but have not been able to do that. Thanks for your gauge so that I had something to work with and didn't have to start from scratch. Can you give me any suggestions? Here is the code as I have modified it:
Code:
<!-- Engine Fire Handle -->
<Gauge Name="Fire Handle Gauge" Version="1.0">
<Element>
<Position X="0" Y="0"/>
<Select>
<Value>(L:ENG1 FIRE EXT,bool)</Value>
<Case Value="1">
<Image Name="Fire_handles_1_on_light.bmp" Bright="Yes"/>
</Case>
</Select>
</Element>
<Element>
<Select>
<Value>(L:ENG 1 FIRE TEST,number) (L:ENG FIRE TEST,number) |</Value>
<Case Value="1">
<Image Name="Fire_handles_1_on_test_light.bmp" Bright="Yes"/>
</Case>
<Case Value="0">
<Image Name="SWAP.bmp"/>
</Case>
</Select>
</Element>
<Element>
<Select>
<Value>(L:FIRE HANDLE 1 PULLED,number)</Value>
<Case Value="1">
<Image Name="Fire_handles_1_pulled.bmp" Bright="Yes"/>
</Case>
<Case Value="0">
<Image Name="SWAP.bmp"/>
</Case>
</Select>
</Element>
<Element>
<Select>
<Value>(L:EF_1,number)</Value>
<Case Value="1">
<Image Name="Fire_handles_1_pulled.bmp" Bright="Yes"/>
</Case>
<Case Value="0">
<Image Name="SWAP.bmp"/>
</Case>
</Select>
</Element>
<Mouse>
<Area Top="61" Bottom="106" Left="20" Right="126">
<Tooltip>Eng.1 Fire Control Handle</Tooltip>
<Cursor Type="Hand"/>
<Click>(L:ENG1 FIRE EXT,bool) 0 != if{ 0 (>L:ENG1 FIRE EXT,bool) (>K:EXTINGUISH_ENGINE_FIRE) 0 (>L:Sound_Fireloop,enum) 1 (>L:FIRE HANDLE 1 PULLED,number) } els{ 1 (>L:ENG1 FIRE EXT,bool) 0 (>L:EF_1,number) (>K:ENTINGUISH_ENGINE_FIRE) 2 (>L:Sound_Fireloop,enum) }
</Click>
</Area>
</Mouse>
</Gauge>

