Move to better place
This commit is contained in:
parent
0ab888d7c8
commit
cc02760a18
2 changed files with 12 additions and 8 deletions
|
@ -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>
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Add table
Reference in a new issue