gen.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <PropertyList>
  3. <path>gen.ac</path>
  4. <animation>
  5. <type>material</type>
  6. <object-name>LH-GEN-OUT</object-name>
  7. <object-name>RH-GEN-OUT</object-name>
  8. <emission>
  9. <red> 0.8 </red>
  10. <green> 0.8 </green>
  11. <blue> 0.8 </blue>
  12. </emission>
  13. </animation>
  14. <animation>
  15. <type>select</type>
  16. <object-name>RH-GEN-OUT</object-name>
  17. <condition>
  18. <and>
  19. <equals>
  20. <property>controls/electric/engine[0]/generator</property>
  21. <value>0</value>
  22. </equals>
  23. <property>controls/engines/engine[0]/starter</property>
  24. <property>/sim/model/lights/sbc1/state</property>
  25. <equals>
  26. <property>controls/electric/external-power</property>
  27. <value>0</value>
  28. </equals>
  29. </and>
  30. </condition>
  31. </animation>
  32. <animation>
  33. <type>select</type>
  34. <object-name>LH-GEN-OUT</object-name>
  35. <condition>
  36. <and>
  37. <equals>
  38. <property>controls/electric/engine[1]/generator</property>
  39. <value>0</value>
  40. </equals>
  41. <property>controls/engines/engine[1]/starter</property>
  42. <property>/sim/model/lights/sbc1/state</property>
  43. <equals>
  44. <property>controls/electric/external-power</property>
  45. <value>0</value>
  46. </equals>
  47. </and>
  48. </condition>
  49. </animation>
  50. <animation>
  51. <type>material</type>
  52. <object-name>base</object-name>
  53. <emission>
  54. <red> 0.5 </red>
  55. <green> 0.2 </green>
  56. <blue> 0.2 </blue>
  57. <factor-prop>systems/electrical/outputs/instrument-lights-norm</factor-prop>
  58. </emission>
  59. </animation>
  60. <animation>
  61. <type>material</type>
  62. <object-name>gen-LH</object-name>
  63. <object-name>gen-RH</object-name>
  64. <emission>
  65. <red> 0.5 </red>
  66. <green> 0.5 </green>
  67. <blue> 0.5 </blue>
  68. </emission>
  69. </animation>
  70. <!-- GEN-on -->
  71. <animation>
  72. <type>pick</type>
  73. <visible>false</visible>
  74. <object-name>gen-on</object-name>
  75. <action>
  76. <button>0</button>
  77. <repeatable>false</repeatable>
  78. <binding>
  79. <command>property-assign</command>
  80. <property>controls/electric/engine[0]/generator</property>
  81. <value>1</value>
  82. </binding>
  83. <binding>
  84. <command>property-assign</command>
  85. <property>controls/electric/engine[1]/generator</property>
  86. <value>1</value>
  87. </binding>
  88. <binding>
  89. <command>property-assign</command>
  90. <property>controls/APU/off-start-run</property>
  91. <value>0</value>
  92. </binding>
  93. <binding>
  94. <command>property-assign</command>>
  95. <property>controls/electric/external-power</property>
  96. <value>0</value>
  97. </binding>
  98. <binding>
  99. <command>property-toggle</command>
  100. <property>sim/sound/click</property>
  101. </binding>
  102. </action>
  103. </animation>
  104. <animation>
  105. <type>rotate</type>
  106. <object-name>gen-RH</object-name>
  107. <object-name>gen-LH</object-name>
  108. <property>controls/electric/engine[0]/generator</property>
  109. <factor>20</factor>
  110. <axis>
  111. <x> 0 </x>
  112. <y> -1 </y>
  113. <z> 0 </z>
  114. </axis>
  115. <center>
  116. <x-m>-0.000 </x-m>
  117. <y-m> 0.059 </y-m>
  118. <z-m>-0.073 </z-m>
  119. </center>
  120. </animation>
  121. <!-- GEN-off -->
  122. <animation>
  123. <type>pick</type>
  124. <visible>false</visible>
  125. <object-name>gen-off</object-name>
  126. <action>
  127. <button>0</button>
  128. <repeatable>false</repeatable>
  129. <binding>
  130. <command>property-assign</command>
  131. <property>controls/electric/engine[0]/generator</property>
  132. <value>0</value>
  133. </binding>
  134. <binding>
  135. <command>property-assign</command>
  136. <property>controls/electric/engine[1]/generator</property>
  137. <value>0</value>
  138. </binding>
  139. <binding>
  140. <command>property-assign</command>
  141. <property>controls/APU/off-start-run</property>
  142. <value>0</value>
  143. </binding>
  144. <binding>
  145. <command>property-assign</command>>
  146. <property>controls/electric/external-power</property>
  147. <value>0</value>
  148. </binding>
  149. <binding>
  150. <command>property-toggle</command>
  151. <property>sim/sound/click</property>
  152. </binding>
  153. </action>
  154. </animation>
  155. <animation>
  156. <type>rotate</type>
  157. <object-name>gen-RH</object-name>
  158. <object-name>gen-LH</object-name>
  159. <property>controls/electric/engine[0]/generator</property>
  160. <factor>0</factor>
  161. <axis>
  162. <x> 0 </x>
  163. <y> -1 </y>
  164. <z> 0 </z>
  165. </axis>
  166. <center>
  167. <x-m>-0.000 </x-m>
  168. <y-m> 0.059 </y-m>
  169. <z-m>-0.073 </z-m>
  170. </center>
  171. </animation>
  172. <!-- EXT-PWR -->
  173. <animation>
  174. <type>pick</type>
  175. <visible>false</visible>
  176. <object-name>ext-pwr</object-name>
  177. <action>
  178. <button>0</button>
  179. <repeatable>false</repeatable>
  180. <binding>
  181. <command>property-assign</command>
  182. <property>controls/electric/engine[0]/generator</property>
  183. <value>0</value>
  184. </binding>
  185. <binding>
  186. <command>property-assign</command>
  187. <property>controls/electric/engine[1]/generator</property>
  188. <value>0</value>
  189. </binding>
  190. <binding>
  191. <command>property-assign</command>
  192. <property>controls/APU/off-start-run</property>
  193. <value>1</value>
  194. </binding>
  195. <binding>
  196. <command>property-assign</command>>
  197. <property>controls/electric/external-power</property>
  198. <value>1</value>
  199. </binding>
  200. <binding>
  201. <command>property-toggle</command>
  202. <property>sim/sound/click</property>
  203. </binding>
  204. </action>
  205. </animation>
  206. <animation>
  207. <type>rotate</type>
  208. <object-name>gen-RH</object-name>
  209. <object-name>gen-LH</object-name>
  210. <property>controls/electric/external-power</property>
  211. <factor>-30</factor>
  212. <axis>
  213. <x> 0 </x>
  214. <y> -1 </y>
  215. <z> 0 </z>
  216. </axis>
  217. <center>
  218. <x-m>-0.000 </x-m>
  219. <y-m> 0.059 </y-m>
  220. <z-m>-0.073 </z-m>
  221. </center>
  222. </animation>
  223. <!-- LOD -->
  224. <animation>
  225. <type>range</type>
  226. <min-m>0</min-m>
  227. <max-m>5</max-m>
  228. </animation>
  229. </PropertyList>