mfd2.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <?xml version="1.0"?>
  2. <!--
  3. Helionix MFD - Canvas Flight Navigation Display for Eurocopter
  4. Author : litzi
  5. -->
  6. <PropertyList>
  7. <path>Models/mfd2.ac</path>
  8. <!-- include the base 3D model of the instrument bezel
  9. and screen background
  10. the panel screen is included as a Canvas via Nasal
  11. -->
  12. <model>
  13. <path>mfd-base.xml</path>
  14. <offsets>
  15. <x-m>0.0</x-m>
  16. <y-m>0.0</y-m>
  17. <z-m>0.0</z-m>
  18. </offsets>
  19. </model>
  20. <animation>
  21. <type>material</type>
  22. <object-name>xmfd2screen</object-name>
  23. <emission>
  24. <red>1.0</red>
  25. <green>1.0</green>
  26. <blue>1.0</blue>
  27. </emission>
  28. <ambient>
  29. <red>0.0</red>
  30. <green>0.0</green>
  31. <blue>0.0</blue>
  32. </ambient>
  33. <diffuse>
  34. <red>0.0</red>
  35. <green>0.0</green>
  36. <blue>0.0</blue>
  37. </diffuse>
  38. </animation>
  39. <animation>
  40. <type>select</type>
  41. <object-name>xmfd2screen</object-name>
  42. <condition>
  43. <not-equals>
  44. <property>instrumentation/mfd[2]/mode</property>
  45. <value>off</value>
  46. </not-equals>
  47. </condition>
  48. </animation>
  49. <!-- all interactions are done via an overlaid transparent 'button' objects with action-elements -->
  50. <animation>
  51. <type>pick</type>
  52. <object-name>mfd2.button.2</object-name>
  53. <action>
  54. <button>0</button>
  55. <repeatable>false</repeatable>
  56. <binding>
  57. <command>nasal</command>
  58. <script>helionix.mfdctrl[2].clickon(2);</script>
  59. </binding>
  60. </action>
  61. </animation>
  62. <animation>
  63. <type>pick</type>
  64. <object-name>mfd2.button.3</object-name>
  65. <action>
  66. <button>0</button>
  67. <repeatable>false</repeatable>
  68. <binding>
  69. <command>nasal</command>
  70. <script>helionix.mfdctrl[2].clickon(3);</script>
  71. </binding>
  72. </action>
  73. </animation>
  74. <animation>
  75. <type>pick</type>
  76. <object-name>mfd2.button.4</object-name>
  77. <action>
  78. <button>0</button>
  79. <repeatable>false</repeatable>
  80. <binding>
  81. <command>nasal</command>
  82. <script>helionix.mfdctrl[2].clickon(4);</script>
  83. </binding>
  84. </action>
  85. </animation>
  86. <animation>
  87. <type>pick</type>
  88. <object-name>mfd2.button.5</object-name>
  89. <action>
  90. <button>0</button>
  91. <repeatable>false</repeatable>
  92. <binding>
  93. <command>nasal</command>
  94. <script>helionix.mfdctrl[2].clickon(5);</script>
  95. </binding>
  96. </action>
  97. </animation>
  98. <animation>
  99. <type>pick</type>
  100. <object-name>mfd2.button.10</object-name>
  101. <action>
  102. <button>0</button>
  103. <repeatable>false</repeatable>
  104. <binding>
  105. <command>nasal</command>
  106. <script>helionix.mfdctrl[2].clickon(10);</script>
  107. </binding>
  108. </action>
  109. </animation>
  110. <animation>
  111. <type>pick</type>
  112. <object-name>mfd2.button.11</object-name>
  113. <action>
  114. <button>0</button>
  115. <repeatable>false</repeatable>
  116. <binding>
  117. <command>nasal</command>
  118. <script>helionix.mfdctrl[2].clickon(11);</script>
  119. </binding>
  120. </action>
  121. </animation>
  122. <animation>
  123. <type>pick</type>
  124. <object-name>mfd2.button.12</object-name>
  125. <action>
  126. <button>0</button>
  127. <repeatable>false</repeatable>
  128. <binding>
  129. <command>nasal</command>
  130. <script>helionix.mfdctrl[2].clickon(12);</script>
  131. </binding>
  132. </action>
  133. </animation>
  134. <animation>
  135. <type>pick</type>
  136. <object-name>mfd2.button.19</object-name>
  137. <action>
  138. <button>0</button>
  139. <repeatable>false</repeatable>
  140. <binding>
  141. <command>nasal</command>
  142. <script>helionix.mfdctrl[2].clickon(19);</script>
  143. </binding>
  144. </action>
  145. </animation>
  146. <animation>
  147. <type>pick</type>
  148. <object-name>mfd2.button.20</object-name>
  149. <action>
  150. <button>0</button>
  151. <repeatable>false</repeatable>
  152. <binding>
  153. <command>nasal</command>
  154. <script>helionix.mfdctrl[2].clickon(20);</script>
  155. </binding>
  156. </action>
  157. </animation>
  158. </PropertyList>