580
edits
| Line 46: | Line 46: | ||
</animation> | </animation> | ||
</PropertyList> | </PropertyList> | ||
</syntaxhighlight> | |||
Another example, showing a Nasal mapping function. | |||
<syntaxhighlight lang="xml"> | |||
<hovered> | |||
<binding> | |||
<command>set-tooltip</command> | |||
<tooltip-id>kt70-func</tooltip-id> | |||
<label>Transponder mode: %s</label> | |||
<property>instrumentation/kt-70/inputs/knob-mode</property> | |||
<mapping>nasal</mapping> | |||
<script> | |||
var modes = ['OFF', 'STANBY', 'GROUND', 'ON', 'ALTITUDE', 'TEST']; | |||
return modes[arg[0]]; | |||
</script> | |||
</binding> | |||
</hovered> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
edits