Tooltips: Difference between revisions

Jump to navigation Jump to search
m
Line 32: Line 32:
  <?xml version="1.0" encoding="utf8"?>
  <?xml version="1.0" encoding="utf8"?>
  <PropertyList>
  <PropertyList>
  <animation>
  <animation>
     <type>slider</type>
     <type>slider</type>
     <hovered>
     <hovered>
    <binding>
      <binding>
        <command>set-tooltip</command>
        <command>set-tooltip</command>
        <label>Mixture: %3d%%</label>
        <label>Mixture: %3d%%</label>
        <measure-text>Mixture: 100%</measure-text>
        <measure-text>Mixture: 100%</measure-text>
        <tooltip-id>mixture</tooltip-id>
        <tooltip-id>mixture</tooltip-id>
        <mapping>percent</mapping>
        <mapping>percent</mapping>
        <property>controls/engines/engine[0]/mixture</property>
        <property>controls/engines/engine[0]/mixture</property>
    </binding>
      </binding>
     </hovered>
     </hovered>
  </animation>
  </animation>
  </PropertyList>
  </PropertyList>
</syntaxhighlight>
</syntaxhighlight>
Line 51: Line 51:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
   <hovered>
   <hovered>
  <binding>
    <binding>
    <command>set-tooltip</command>
      <command>set-tooltip</command>
    <tooltip-id>heading-bug</tooltip-id>
      <tooltip-id>heading-bug</tooltip-id>
    <mapping>heading</mapping>
      <mapping>heading</mapping>
    <label>Heading Bug: %3d</label>
      <label>Heading Bug: %3d</label>
    <property>autopilot/settings/heading-bug-deg</property>
      <property>autopilot/settings/heading-bug-deg</property>
  </binding>
    </binding>
   </hovered>
   </hovered>
</syntaxhighlight>
</syntaxhighlight>
Line 64: Line 64:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
    <hovered>
  <hovered>
    <binding>
    <binding>
      <command>set-tooltip</command>
      <command>set-tooltip</command>
      <tooltip-id>kt70-func</tooltip-id>
      <tooltip-id>kt70-func</tooltip-id>
      <label>Transponder mode: %s</label>
      <label>Transponder mode: %s</label>
      <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 modes = ['OFF', 'STANBY', 'GROUND', 'ON', 'ALTITUDE', 'TEST'];
        var modes = ['OFF', 'STANBY', 'GROUND', 'ON', 'ALTITUDE', 'TEST'];
        return modes[arg[0]];
        return modes[arg[0]];
      </script>
      </script>
      </binding>
    </binding>
    </hovered>
  </hovered>
</syntaxhighlight>
</syntaxhighlight>
546

edits

Navigation menu