- Messages
- 31
- Country
Hi,
New to XML programming, I'm trying to develop announcement gauge for FSX based on Doug Dawson's dsd_fsx_xml_sound.gau.
The following XML syntax works with the exception that the sound does not play once, but in a loop:
Any help is highly appreciated!
Best, Fritz
New to XML programming, I'm trying to develop announcement gauge for FSX based on Doug Dawson's dsd_fsx_xml_sound.gau.
The following XML syntax works with the exception that the sound does not play once, but in a loop:
Code:
<Gauge Name="Flaps Announcements" Version="1.0">
<Element>
<Select>
<Value>
(A:Sim on Ground, bool) ! if{ (A:Flaps Handle Index, number) 0 ==
if{ 1 (>L:FH_xml_sound_id_FU, number) } }
(A:Sim on Ground, bool) ! if{ (A:Flaps Handle Index, number) 1 ==
if{ 1 (>L:FH_xml_sound_id_F1, number) } }
(A:Sim on Ground, bool) ! if{ (A:Flaps Handle Index, number) 2 ==
if{ 1 (>L:FH_xml_sound_id_F2, number) } }
(A:Sim on Ground, bool) ! if{ (A:Flaps Handle Index, number) 3 ==
if{ 1 (>L:FH_xml_sound_id_F3, number) } }
(A:Sim on Ground, bool) ! if{ (A:Flaps Handle Index, number) 4 ==
if{ 1 (>L:FH_xml_sound_id_FF, number) } }
(L:Flaps Deployed in Air, bool) ! if{ (A:Flaps Handle Index, number) 0 ==
if{ 1 (>L:FH_xml_sound_id_FU, number) } }
(L:Flaps Deployed in Air, bool) ! if{ (A:Flaps Handle Index, number) 1 ==
if{ 1 (>L:FH_xml_sound_id_F1, number) } }
(L:Flaps Deployed in Air, bool) ! if{ (A:Flaps Handle Index, number) 2 ==
if{ 1 (>L:FH_xml_sound_id_F2, number) } }
(L:Flaps Deployed in Air, bool) ! if{ (A:Flaps Handle Index, number) 3 ==
if{ 1 (>L:FH_xml_sound_id_F3, number) } }
(L:Flaps Deployed in Air, bool) ! if{ (A:Flaps Handle Index, number) 4 ==
if{ 1 (>L:FH_xml_sound_id_FF, number) } }
(L:Retract Flaps, bool) if{ (>L:FH_xml_sound_id_FU, number) }
</Value>
</Select>
</Element>
</Gauge>
Any help is highly appreciated!
Best, Fritz