546
edits
m (→Examples) |
m (→Examples) |
||
| Line 32: | Line 32: | ||
<?xml version="1.0" encoding="utf8"?> | <?xml version="1.0" encoding="utf8"?> | ||
<PropertyList> | <PropertyList> | ||
<animation> | |||
<type>slider</type> | <type>slider</type> | ||
<hovered> | <hovered> | ||
<binding> | |||
<command>set-tooltip</command> | |||
<label>Mixture: %3d%%</label> | |||
<measure-text>Mixture: 100%</measure-text> | |||
<tooltip-id>mixture</tooltip-id> | |||
<mapping>percent</mapping> | |||
<property>controls/engines/engine[0]/mixture</property> | |||
</binding> | |||
</hovered> | </hovered> | ||
</animation> | |||
</PropertyList> | </PropertyList> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 51: | Line 51: | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<hovered> | <hovered> | ||
<binding> | |||
<command>set-tooltip</command> | |||
<tooltip-id>heading-bug</tooltip-id> | |||
<mapping>heading</mapping> | |||
<label>Heading Bug: %3d</label> | |||
<property>autopilot/settings/heading-bug-deg</property> | |||
</binding> | |||
</hovered> | </hovered> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 64: | Line 64: | ||
<syntaxhighlight lang="xml"> | <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