Map KT-70 mode to tooltip using an array.
This commit is contained in:
parent
08243eb083
commit
476c5fcb5f
1 changed files with 2 additions and 7 deletions
|
@ -224,13 +224,8 @@
|
|||
<property>instrumentation/kt-70/inputs/knob-mode</property>
|
||||
<mapping>nasal</mapping>
|
||||
<script>
|
||||
var m = arg[0];
|
||||
if(m == 1) return 'STANBDY';
|
||||
if(m == 3) return 'GROUND';
|
||||
if(m == 4) return 'ON';
|
||||
if(m == 5) return 'ALTITUDE';
|
||||
if(m == 2) return 'TEST';
|
||||
return 'OFF';
|
||||
var modes = ['OFF', 'STANDBY', 'TEST', 'GROUND', 'ON', 'ALTITUDE'];
|
||||
return modes[arg[0]];
|
||||
</script>
|
||||
</binding>
|
||||
</hovered>
|
||||
|
|
Loading…
Reference in a new issue