Tooltips: Difference between revisions

Jump to navigation Jump to search
520 bytes added ,  12 May 2013
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>
580

edits

Navigation menu