Skip to content

Commit

Permalink
Added many, MANY missing tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFGFSEagle committed Apr 11, 2022
1 parent 48b44c0 commit b0ad993
Show file tree
Hide file tree
Showing 28 changed files with 537 additions and 254 deletions.
53 changes: 53 additions & 0 deletions Models/Interior/Panel/Avionics/if-550a/if-550a-control.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@
<script>if550a.toggleEngaged();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>ap-engaged</tooltip-id>
<label>Autopilot: %s</label>
<measure-text>Autopilot: Disengaged</measure-text>
<property>autopilot/if-550a/engaged</property>
<mapping>nasal</mapping>
<script>
return ["Disengaged", "Engaged"][arg[0]];
</script>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand Down Expand Up @@ -45,6 +58,15 @@
<max>10</max>
</binding>
</shift-action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>ap-target-pitch</tooltip-id>
<label>Target pitch: %2.1f°</label>
<measure-text>Target pitch -10.0°</measure-text>
<property>autopilot/if-550a/target-pitch-deg</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand Down Expand Up @@ -72,6 +94,30 @@
<max>1</max>
</binding>
</shift-action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>ap-target-turn-rate</tooltip-id>
<label>Target turn rate: %s</label>
<measure-text>Target turn rate: 3° right per second (standard rate turn)</measure-text>
<property>autopilot/if-550a/target-turn-rate</property>
<mapping>nasal</mapping>
<script><![CDATA[
var s = "";
if (arg[0] < 0) {
s = sprintf("%1.1f° left per second", arg[0]);
} elsif (arg[0] > 0) {
return sprintf("%1.1f° right per second", arg[0]);
} else {
return "0° per second";
}
if (math.abs(arg[0]) == 1) {
s ~= " (standard rate turn)";
}
return s
]]></script>
</binding>
</hovered>
</animation>
<!--<animation>
<type>knob</type>
Expand Down Expand Up @@ -121,6 +167,13 @@
<value>0</value>
</binding>
</release>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>ap-test</tooltip-id>
<label>Push to test autopilot disconnect mechanism</label>
</binding>
</hovered>
</animation>

<text>
Expand Down
112 changes: 111 additions & 1 deletion Models/Interior/Panel/Avionics/rnav/rnav.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@
<min>0</min>
<max>3</max>
<factor>1</factor>
</binding>
<binding>
<command>nasal</command>
<script>c210.rnav.updateBearing();</script>
</binding>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-bearing</tooltip-id>
<label>Waypoint bearing: %3.1f°</label>
<measure-text>Waypoint bearing: 359.9°</measure-text>
<property>instrumentation/rnav/selected-bearing-deg</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -45,6 +54,15 @@
<script>c210.rnav.updateBearing();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-bearing</tooltip-id>
<label>Waypoint bearing: %3.1f°</label>
<measure-text>Waypoint bearing: 359.9°</measure-text>
<property>instrumentation/rnav/selected-bearing-deg</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -67,6 +85,15 @@
<script>c210.rnav.updateBearing();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-bearing</tooltip-id>
<label>Waypoint bearing: %3.1f°</label>
<measure-text>Waypoint bearing: 359.9°</measure-text>
<property>instrumentation/rnav/selected-bearing-deg</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -89,6 +116,15 @@
<script>c210.rnav.updateBearing();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-bearing</tooltip-id>
<label>Waypoint bearing: %3.1f°</label>
<measure-text>Waypoint bearing: 359.9°</measure-text>
<property>instrumentation/rnav/selected-bearing-deg</property>
</binding>
</hovered>
</animation>

<animation>
Expand All @@ -112,6 +148,15 @@
<script>c210.rnav.updateDistance();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-distance</tooltip-id>
<label>Waypoint distance: %3.1f°</label>
<measure-text>Waypoint distance: 200.0°</measure-text>
<property>instrumentation/rnav/selected-distance-nm</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -134,6 +179,15 @@
<script>c210.rnav.updateDistance();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-distance</tooltip-id>
<label>Waypoint distance: %3.1f°</label>
<measure-text>Waypoint distance: 200.0°</measure-text>
<property>instrumentation/rnav/selected-distance-nm</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -156,6 +210,15 @@
<script>c210.rnav.updateDistance();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-distance</tooltip-id>
<label>Waypoint distance: %3.1f°</label>
<measure-text>Waypoint distance: 200.0°</measure-text>
<property>instrumentation/rnav/selected-distance-nm</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -178,6 +241,15 @@
<script>c210.rnav.updateDistance();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-distance</tooltip-id>
<label>Waypoint distance: %3.1f°</label>
<measure-text>Waypoint distance: 200.0°</measure-text>
<property>instrumentation/rnav/selected-distance-nm</property>
</binding>
</hovered>
</animation>

<animation>
Expand Down Expand Up @@ -273,6 +345,15 @@
<wrap type="bool">true</wrap>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-display-waypoint</tooltip-id>
<label>Displayed waypoint: %d</label>
<measure-text>Displayed waypoint: 1</measure-text>
<property>instrumentation/rnav/display-waypoint</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -297,6 +378,15 @@
<script>c210.rnav.updateCurrentWaypoint();</script>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-fly-waypoint</tooltip-id>
<label>Fly waypoint: %d</label>
<measure-text>Fly waypoint: 1</measure-text>
<property>instrumentation/rnav/fly-waypoint</property>
</binding>
</hovered>
</animation>
<animation>
<type>knob</type>
Expand All @@ -316,6 +406,19 @@
<wrap type="bool">true</wrap>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-mode</tooltip-id>
<label>Mode: %s</label>
<measure-text>Mode: Enroute</measure-text>
<property>instrumentation/rnav/mode</property>
<mapping>nasal</mapping>
<script>
return ["Enroute", "Approach"][arg[0]];
</script>
</binding>
</hovered>
</animation>

<animation>
Expand Down Expand Up @@ -347,6 +450,13 @@
<time>0.01</time>
</binding>
</release>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>rnav-display-waypoint</tooltip-id>
<label>Push to transfer selected bearing and distance into waypoint 1 or 2 as selected by the Display switch</label>
</binding>
</hovered>
</animation>

<animation>
Expand Down
27 changes: 27 additions & 0 deletions Models/Interior/Panel/Controls/gear/gear.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@
<property>controls/gear/gear-down</property>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>gear-lever</tooltip-id>
<label>Gear position: %s</label>
<measure-text>Gear position: Down</measure-text>
<property>controls/gear/gear-down</property>
<mapping>nasal</mapping>
<script>
return ["Up", "Down"][arg[0]];
</script>
</binding>
</hovered>
</animation>

<!-- gear lever needs to be pulled out in order to be moveable -->
Expand Down Expand Up @@ -90,6 +103,13 @@
<property>sim/model/controls/gear/retracted-lamp-test</property>
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>gear-retracted-lamp</tooltip-id>
<label>Gear retracted indicator light (push to test)</label>
</binding>
</hovered>
</animation>

<animation>
Expand All @@ -112,6 +132,13 @@
<value>2</value> <!-- test lamp illumination -->
</binding>
</action>
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>gear-extended-lamp</tooltip-id>
<label>Gear extended indicator light (push to test)</label>
</binding>
</hovered>
</animation>

<animation>
Expand Down
Loading

0 comments on commit b0ad993

Please sign in to comment.