1
0
Fork 0

Move to better place

This commit is contained in:
legoboyvdlp R 2020-04-18 16:39:55 +01:00
parent 0ab888d7c8
commit cc02760a18
2 changed files with 12 additions and 8 deletions

View file

@ -1436,10 +1436,6 @@
<command>nasal</command> <command>nasal</command>
<script> <script>
fcu.FCUController.ATDisc(); fcu.FCUController.ATDisc();
setprop("/sim/sounde/apdiscbtn", 1);
settimer(func {
setprop("/sim/sounde/apdiscbtn", 0);
}, 0.5);
</script> </script>
</binding> </binding>
</key> </key>
@ -2192,10 +2188,6 @@
<command>nasal</command> <command>nasal</command>
<script> <script>
fcu.FCUController.APDisc(); fcu.FCUController.APDisc();
setprop("/sim/sounde/apdiscbtn", 1);
settimer(func {
setprop("/sim/sounde/apdiscbtn", 0);
}, 0.5);
</script> </script>
</binding> </binding>
</key> </key>

View file

@ -146,6 +146,12 @@ var FCUController = {
} }
}, },
APDisc: func() { APDisc: func() {
# physical button sound - so put it outside here as you get a sound even if it doesn't work!
setprop("/sim/sounde/apdiscbtn", 1);
settimer(func {
setprop("/sim/sounde/apdiscbtn", 0);
}, 0.5);
if (me.FCUworking) { if (me.FCUworking) {
if (ap1.getBoolValue() or ap2.getBoolValue()) { if (ap1.getBoolValue() or ap2.getBoolValue()) {
apOff("soft", 0); apOff("soft", 0);
@ -162,6 +168,12 @@ var FCUController = {
} }
}, },
ATDisc: func() { ATDisc: func() {
# physical button sound - so put it outside here as you get a sound even if it doesn't work!
setprop("/sim/sounde/apdiscbtn", 1);
settimer(func {
setprop("/sim/sounde/apdiscbtn", 0);
}, 0.5);
if (me.FCUworking) { if (me.FCUworking) {
if (athr.getBoolValue()) { if (athr.getBoolValue()) {
athrOff("soft"); athrOff("soft");