Hello
I've been trying to insert a dsd sound gauge (dsd_xml_sound3)into the default crj700 pop-up panel - namely the apu start/stop button. I have searched many forums and have come up with some L:variables such as;
1 (>L:dsd_xml_id_00,number)(ground, bool) if { 1 (LlayMySound,number) } els{ 0
(LlayMySound,number) }
and
1 (>L:"your sound", number)
(G:Var1, bool) ! (>G:Var1, bool)
I have three sounds (two if I loop one of them)-
switch on;run(a loop) and switch off.
This is my sound ini:
[Config]
MaxSounds=3
Lvar=dsd_xml_sound_id
LvarStop=APU_SoundStop
[Sounds]
Sound00=./Sound/APUS_Sounds/APU01_start.wav,95
Sound01=./Sound/APUS_Sounds/APU02_run.wav,90
Sound02=./Sound/APUS_Sounds/APU03_stop.wav,95
[LVars]
Lvar00=APU_Switch_on
Lvar01=APU_Switch_run
Lvar02=APU_Switch_off
and this is the xml part of the crj overhead panel:
- <Element id="APU">
<FloatPosition>92.000,52.000</FloatPosition>
- <Select id="Select">
- <Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>1.000</Maximum>
<Script>(A:APU Generator Switch, bool)</Script>
</Expression>
- <Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
- <Image id="Image" Name="popup_overhead_switch_electrical_power_apu_off.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
- <Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
- <Image id="Image" Name="popup_overhead_switch_electrical_power_apu_on.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>
and this is my callout for the gauge:
[Window09]
gauge00=APUS_Sound!dsd_xml_sound3, 0,0,0,0
./gauges/APUS_Sound.ini
I would think that the L:variable should go into the section <script>?
My problem is that I don't know where to insert the triggers and if they are the correct ones. Would someone please help me?
Kindest Regards
Paul
I've been trying to insert a dsd sound gauge (dsd_xml_sound3)into the default crj700 pop-up panel - namely the apu start/stop button. I have searched many forums and have come up with some L:variables such as;
1 (>L:dsd_xml_id_00,number)(ground, bool) if { 1 (LlayMySound,number) } els{ 0
(LlayMySound,number) }
and
1 (>L:"your sound", number)
(G:Var1, bool) ! (>G:Var1, bool)
I have three sounds (two if I loop one of them)-
switch on;run(a loop) and switch off.
This is my sound ini:
[Config]
MaxSounds=3
Lvar=dsd_xml_sound_id
LvarStop=APU_SoundStop
[Sounds]
Sound00=./Sound/APUS_Sounds/APU01_start.wav,95
Sound01=./Sound/APUS_Sounds/APU02_run.wav,90
Sound02=./Sound/APUS_Sounds/APU03_stop.wav,95
[LVars]
Lvar00=APU_Switch_on
Lvar01=APU_Switch_run
Lvar02=APU_Switch_off
and this is the xml part of the crj overhead panel:
- <Element id="APU">
<FloatPosition>92.000,52.000</FloatPosition>
- <Select id="Select">
- <Expression id="Expression">
<Minimum>0.000</Minimum>
<Maximum>1.000</Maximum>
<Script>(A:APU Generator Switch, bool)</Script>
</Expression>
- <Case id="Case">
<ExpressionResult>0.000</ExpressionResult>
- <Image id="Image" Name="popup_overhead_switch_electrical_power_apu_off.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
- <Case id="Case">
<ExpressionResult>1.000</ExpressionResult>
- <Image id="Image" Name="popup_overhead_switch_electrical_power_apu_on.bmp">
<Transparent>True</Transparent>
</Image>
</Case>
</Select>
</Element>
and this is my callout for the gauge:
[Window09]
gauge00=APUS_Sound!dsd_xml_sound3, 0,0,0,0
./gauges/APUS_Sound.ini
I would think that the L:variable should go into the section <script>?
My problem is that I don't know where to insert the triggers and if they are the correct ones. Would someone please help me?
Kindest Regards
Paul