1
0
Fork 0

Map KT-70 mode to tooltip using an array.

This commit is contained in:
James Turner 2013-06-01 10:46:40 +01:00
parent 08243eb083
commit 476c5fcb5f

View file

@ -224,13 +224,8 @@
<property>instrumentation/kt-70/inputs/knob-mode</property> <property>instrumentation/kt-70/inputs/knob-mode</property>
<mapping>nasal</mapping> <mapping>nasal</mapping>
<script> <script>
var m = arg[0]; var modes = ['OFF', 'STANDBY', 'TEST', 'GROUND', 'ON', 'ALTITUDE'];
if(m == 1) return 'STANBDY'; return modes[arg[0]];
if(m == 3) return 'GROUND';
if(m == 4) return 'ON';
if(m == 5) return 'ALTITUDE';
if(m == 2) return 'TEST';
return 'OFF';
</script> </script>
</binding> </binding>
</hovered> </hovered>