1
0
Fork 0

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:
mfranz 2007-10-14 18:04:53 +00:00
parent 705e4bcaac
commit cdc2b360d7

View file

@ -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) {