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>
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue