launchbar message: adapt for new setlistener() syntax; fourth argument set
to zero, so that the listener is only triggered when the launchbar state has change. (YASim writes it in every frame. Sigh.)
This commit is contained in:
parent
705e4bcaac
commit
cdc2b360d7
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func {
|
|||
setlistener("/gear/launchbar/state", func {
|
||||
if (cmdarg().getValue() == "Engaged")
|
||||
setprop("/sim/messages/copilot", "Engaged!");
|
||||
}, 2);
|
||||
}, 1, 0);
|
||||
|
||||
# map ATC messages to the screen log and to the voice subsystem
|
||||
var map = func(type, msg, r, g, b) {
|
||||
|
|
Loading…
Add table
Reference in a new issue