ec145ecp.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <PropertyList>
  2. <path>ec145ecp.ac</path>
  3. <animation>
  4. <type>pick</type>
  5. <object-name>train</object-name>
  6. <visible>true</visible>
  7. <action>
  8. <button>0</button>
  9. <binding>
  10. <command>nasal</command>
  11. <script>bk117.engswitch.train();</script>
  12. </binding>
  13. </action>
  14. </animation>
  15. <animation>
  16. <type>material</type>
  17. <object-name>train</object-name>
  18. <visible>true</visible>
  19. <condition>
  20. <property>/controls/switches/ecp/trainswitch</property>
  21. </condition>
  22. <emission>
  23. <red>1</red>
  24. <green>1</green>
  25. <blue>0</blue>
  26. </emission>
  27. </animation>
  28. <animation>
  29. <type>pick</type>
  30. <object-name>vent1</object-name>
  31. <visible>true</visible>
  32. <action>
  33. <button>0</button>
  34. <repeatable>false</repeatable>
  35. <interval-sec>0.5</interval-sec>
  36. <binding>
  37. <command>nasal</command>
  38. <script>bk117.engswitch.vent(0);</script>
  39. </binding>
  40. </action>
  41. </animation>
  42. <animation>
  43. <type>rotate</type>
  44. <object-name>main1</object-name>
  45. <property>/controls/switches/ecp/pos[0]</property>
  46. <interpolation>
  47. <entry><ind> 0.0</ind><dep> 20.0</dep> </entry>
  48. <entry><ind> 1.0</ind><dep> 0.0</dep> </entry>
  49. <entry><ind> 2.0</ind><dep> -20.0</dep> </entry>
  50. </interpolation>
  51. <factor>-40</factor>
  52. <offset-deg>20</offset-deg>
  53. <center>
  54. <x-m>-0.02</x-m>
  55. <y-m>0.0</y-m>
  56. <z-m>0.0</z-m>
  57. </center>
  58. <axis>
  59. <x> 0 </x>
  60. <y> 1 </y>
  61. <z> 0 </z>
  62. </axis>
  63. </animation>
  64. <animation>
  65. <type>pick</type>
  66. <object-name>main1</object-name>
  67. <visible>true</visible>
  68. <action>
  69. <button>0</button>
  70. <repeatable>false</repeatable>
  71. <interval-sec>0.5</interval-sec>
  72. <binding>
  73. <command>nasal</command>
  74. <script>bk117.engswitch.up(0);</script>
  75. </binding>
  76. </action>
  77. <action>
  78. <button>1</button>
  79. <repeatable>false</repeatable>
  80. <interval-sec>0.5</interval-sec>
  81. <binding>
  82. <command>nasal</command>
  83. <script>bk117.engswitch.down(0);</script>
  84. </binding>
  85. </action>
  86. <hovered>
  87. <binding>
  88. <command>set-tooltip</command>
  89. <label>Eng 1 Power: %3d%%</label>
  90. <tooltip-id>eng1</tooltip-id>
  91. <mapping>percent</mapping>
  92. <property>/controls/engines/engine/power</property>
  93. </binding>
  94. </hovered>
  95. </animation>
  96. <animation>
  97. <type>rotate</type>
  98. <!-- <condition>
  99. <equals>
  100. <property>/controls/engines/engine/power</property>
  101. <value>1</value>
  102. </equals>
  103. </condition>-->
  104. <object-name>save1</object-name>
  105. <property>/controls/switches/ecp/pos[0]</property>
  106. <interpolation>
  107. <entry><ind> 0.0</ind><dep> 0.0</dep> </entry>
  108. <entry><ind> 1.0</ind><dep> 0.0</dep> </entry>
  109. <entry><ind> 2.0</ind><dep> 90.0</dep> </entry>
  110. </interpolation>
  111. <center>
  112. <x-m>-0.005</x-m>
  113. <y-m>-0.1</y-m>
  114. <z-m>0.0</z-m>
  115. </center>
  116. <axis>
  117. <x> 0 </x>
  118. <y> 0 </y>
  119. <z> 1 </z>
  120. </axis>
  121. </animation>
  122. <animation>
  123. <type>rotate</type>
  124. <object-name>main2</object-name>
  125. <property>/controls/switches/ecp/pos[1]</property>
  126. <interpolation>
  127. <entry><ind> 0.0</ind><dep> 20.0</dep> </entry>
  128. <entry><ind> 1.0</ind><dep> 0.0</dep> </entry>
  129. <entry><ind> 2.0</ind><dep> -20.0</dep> </entry>
  130. </interpolation>
  131. <factor>-40</factor>
  132. <offset-deg>20</offset-deg>
  133. <center>
  134. <x-m>-0.02</x-m>
  135. <y-m>0.0</y-m>
  136. <z-m>0.0</z-m>
  137. </center>
  138. <axis>
  139. <x> 0 </x>
  140. <y> 1 </y>
  141. <z> 0 </z>
  142. </axis>
  143. </animation>
  144. <animation>
  145. <type>pick</type>
  146. <object-name>main2</object-name>
  147. <visible>true</visible>
  148. <action>
  149. <button>0</button>
  150. <repeatable>false</repeatable>
  151. <interval-sec>0.5</interval-sec>
  152. <binding>
  153. <command>nasal</command>
  154. <script>bk117.engswitch.up(1);</script>
  155. </binding>
  156. </action>
  157. <action>
  158. <button>1</button>
  159. <repeatable>false</repeatable>
  160. <interval-sec>0.5</interval-sec>
  161. <binding>
  162. <command>nasal</command>
  163. <script>bk117.engswitch.down(1);</script>
  164. </binding>
  165. </action>
  166. <hovered>
  167. <binding>
  168. <command>set-tooltip</command>
  169. <label>Eng 2 Power: %3d%%</label>
  170. <tooltip-id>eng1</tooltip-id>
  171. <mapping>percent</mapping>
  172. <property>/controls/engines/engine[1]/power</property>
  173. </binding>
  174. </hovered>
  175. </animation>
  176. <animation>
  177. <type>pick</type>
  178. <object-name>vent2</object-name>
  179. <visible>true</visible>
  180. <action>
  181. <button>0</button>
  182. <repeatable>false</repeatable>
  183. <interval-sec>0.5</interval-sec>
  184. <binding>
  185. <command>nasal</command>
  186. <script>bk117.engswitch.vent(1);</script>
  187. </binding>
  188. </action>
  189. </animation>
  190. <animation>
  191. <type>rotate</type>
  192. <!-- <condition>
  193. <equals>
  194. <property>/controls/engines/engine/power</property>
  195. <value>1</value>
  196. </equals>
  197. </condition>-->
  198. <object-name>save2</object-name>
  199. <property>/controls/switches/ecp/pos[1]</property>
  200. <interpolation>
  201. <entry><ind> 0.0</ind><dep> 0.0</dep> </entry>
  202. <entry><ind> 1.0</ind><dep> 0.0</dep> </entry>
  203. <entry><ind> 2.0</ind><dep> 90.0</dep> </entry>
  204. </interpolation>
  205. <center>
  206. <x-m>-0.005</x-m>
  207. <y-m>0.06</y-m>
  208. <z-m>0.0</z-m>
  209. </center>
  210. <axis>
  211. <x> 0 </x>
  212. <y> 0 </y>
  213. <z> 1 </z>
  214. </axis>
  215. </animation>
  216. <animation>
  217. <type>material</type>
  218. <object-name>Plane</object-name>
  219. <emission>
  220. <red>0.028</red>
  221. <green>0.014</green>
  222. <blue>0.007</blue>
  223. <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
  224. </emission>
  225. </animation>
  226. </PropertyList>