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

View file

@ -146,6 +146,12 @@ var FCUController = {
}
},
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 (ap1.getBoolValue() or ap2.getBoolValue()) {
apOff("soft", 0);
@ -162,6 +168,12 @@ var FCUController = {
}
},
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 (athr.getBoolValue()) {
athrOff("soft");