I would like to create a 3D switch to hear the sound of the ADF2
I've written this code, but it doesn't work correctly.
Irrespective of the position of the switch, I always hear the ident sound.
I've tried this code but it doesn't work :
Thank for your help.
I've written this code, but it doesn't work correctly.
Irrespective of the position of the switch, I always hear the ident sound.
Code:
<PartInfo>
<Name>00-NORD_ADF2_audio_ON-OFF</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Code>
(L:ADF2_audio_ON-OFF,number) 100 *
</Code>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<TooltipText>Maximum</TooltipText>
<CallbackCode>
(L:ADF2_audio_ON-OFF,number) ! (>L:ADF2_audio_ON-OFF,number)
(ADF2_audio_ON-OFF,number) == 1 if{ (>K:RADIO_ADF2_IDENT_ENABLE) } els{ (>K:RADIO_ADF2_IDENT_DISABLE) }
</CallbackCode>
</MouseRect>
</PartInfo>
I've tried this code but it doesn't work :
Code:
<PartInfo>
<Name>00-NORD_ADF2_audio_ON-OFF</Name>
<AnimLength>50</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>ADF SOUND:1</Variable>
<Units>bool</Units>
<Scale>50</Scale>
</Sim>
<Lag>400</Lag>
</Parameter>
</Animation>
<MouseRect>
<Cursor>Hand</Cursor>
<HelpID>HELPID_RADIO_AUDIO</HelpID>
<TooltipID>TOOLTIPTEXT_ADF2_AUDIO_SELECTOR</TooltipID>
<EventID>RADIO_ADF2_IDENT_TOGGLE</EventID>
</MouseRect>
</PartInfo>


