From e34c24657dcb01633b95e1c6db76d47f62f43185 Mon Sep 17 00:00:00 2001 From: Dan Date: Sat, 30 Nov 2019 21:54:41 +0000 Subject: [PATCH] Fast label now activates when fast speed is present --- nui/radar.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nui/radar.js b/nui/radar.js index bad48d2..e5aeade 100644 --- a/nui/radar.js +++ b/nui/radar.js @@ -208,6 +208,11 @@ function setAntennaMode( ant, mode ) setLight( ant, "modes", "opp", mode == modes.opp ); } +function setAntennaFastLabel( ant, state ) +{ + setLight( ant, "fast", "fastLabel", state ); +} + function setAntennaDirs( ant, dir, fastDir ) { setLight( ant, "dirs", "fwd", dir == dirs.closing ); @@ -229,6 +234,8 @@ function updateDisplays( ps, ants ) e.targetSpeed.html( ants[ant][0].speed ); e.fastSpeed.html( ants[ant][1].speed ); + setAntennaFastLabel( ant, ants[ant][1].speed == "¦¦¦" ? false : true ); + setAntennaDirs( ant, ants[ant][0].dir, ants[ant][1].dir ); } }