alt2-3d.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <path>alt2.ac</path>
  4. <animation>
  5. <type>rotate</type>
  6. <object-name>needle100</object-name>
  7. <property>/instrumentation/altimeter/indicated-altitude-ft</property>
  8. <factor>0.36</factor>
  9. <axis>
  10. <x>-1</x>
  11. <y>0</y>
  12. <z>0</z>
  13. </axis>
  14. </animation>
  15. <animation>
  16. <type>rotate</type>
  17. <object-name>needle1000</object-name>
  18. <property>/instrumentation/altimeter/indicated-altitude-ft</property>
  19. <factor>0.036</factor>
  20. <axis>
  21. <x>-1</x>
  22. <y>0</y>
  23. <z>0</z>
  24. </axis>
  25. </animation>
  26. <animation>
  27. <type>rotate</type>
  28. <object-name>needle10000</object-name>
  29. <property>/instrumentation/altimeter/indicated-altitude-ft</property>
  30. <factor>0.0036</factor>
  31. <axis>
  32. <x>-1</x>
  33. <y>0</y>
  34. <z>0</z>
  35. </axis>
  36. </animation>
  37. <animation>
  38. <type>texrotate</type>
  39. <object-name>inhg</object-name>
  40. <property>/instrumentation/altimeter/setting-inhg</property>
  41. <interpolation>
  42. <entry><ind>27.90</ind><dep>0.0</dep></entry>
  43. <entry><ind>28.0</ind><dep>9.35</dep></entry>
  44. <entry><ind>28.5</ind><dep>59.0</dep></entry>
  45. <entry><ind>29.0</ind><dep>109.0</dep></entry>
  46. <entry><ind>29.5</ind><dep>159.5</dep></entry>
  47. <entry><ind>29.9</ind><dep>200.0</dep></entry>
  48. <entry><ind>30.0</ind><dep>210.0</dep></entry>
  49. <entry><ind>30.5</ind><dep>261.0</dep></entry>
  50. <entry><ind>31.0</ind><dep>310.0</dep></entry>
  51. <entry><ind>31.4</ind><dep>350.0</dep></entry>
  52. </interpolation>
  53. <center>
  54. <x>0.25</x>
  55. <y>0.25</y>
  56. </center>
  57. <axis>
  58. <x>0</x>
  59. <y>0</y>
  60. <z>-1</z>
  61. </axis>
  62. </animation>
  63. <animation>
  64. <type>knob</type>
  65. <object-name>InhgKnob</object-name>
  66. <drag-direction>vertical</drag-direction>
  67. <action>
  68. <binding>
  69. <command>property-adjust</command>
  70. <property>/instrumentation/altimeter/setting-inhg</property>
  71. <factor>0.01</factor>
  72. <min>26.0</min>
  73. <max>33.0</max>
  74. <wrap>false</wrap>
  75. </binding>
  76. </action>
  77. <hovered>
  78. <binding>
  79. <command>set-tooltip</command>
  80. <tooltip-id>alt-setting</tooltip-id>
  81. <label>%s</label>
  82. <property>instrumentation/altimeter/setting-inhg</property>
  83. <mapping>nasal</mapping>
  84. <!-- Source of the conversion formula:
  85. <http://en.wikipedia.org/wiki/Inch_of_mercury> (which specifies:
  86. "at 0 °C"; I don't think it matters for this application) -->
  87. <script>
  88. return sprintf("Altimeter: %5.2f inHg (%04d hPa)",
  89. arg[0], math.round(33.86389*arg[0]));
  90. </script>
  91. </binding>
  92. </hovered>
  93. </animation>
  94. <!-- dimming -->
  95. <animation>
  96. <name>all</name>
  97. <object-name>ALTface</object-name>
  98. <object-name>needle100</object-name>
  99. <object-name>needle1000</object-name>
  100. <object-name>needle10000</object-name>
  101. <object-name>inhg</object-name>
  102. <object-name>InhgKnob</object-name>
  103. </animation>
  104. <animation>
  105. <type>material</type>
  106. <object-name>all</object-name>
  107. <condition>
  108. <property>systems/electrical/outputs/instrument-lights-norm</property>
  109. <equals>
  110. <property>controls/lighting/instrument-lights-selection</property>
  111. <value>0</value>
  112. </equals>
  113. </condition>
  114. <emission>
  115. <red> 0.8 </red>
  116. <green> 0.8 </green>
  117. <blue> 1.0 </blue>
  118. <factor>0.5</factor>
  119. </emission>
  120. </animation>
  121. <animation>
  122. <type>material</type>
  123. <object-name>all</object-name>
  124. <condition>
  125. <greater-than>
  126. <property>controls/lighting/instrument-lights-selection</property>
  127. <value>0</value>
  128. </greater-than>
  129. </condition>
  130. <emission>
  131. <red> 0.8 </red>
  132. <green> 0.8 </green>
  133. <blue> 1.0 </blue>
  134. <factor-prop>systems/electrical/outputs/instrument-lights-norm</factor-prop>
  135. </emission>
  136. </animation>
  137. </PropertyList>