breakers.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <path>breakers2.ac</path>
  4. <model>
  5. <name>levers</name>
  6. <path>Aircraft/ec130/Models/Instruments/kcs55/ka51b.xml</path>
  7. <offsets>
  8. <x-m>0</x-m>
  9. <y-m>-0.062</y-m>
  10. <z-m>0.003</z-m>
  11. <pitch-deg>-90</pitch-deg>
  12. </offsets>
  13. </model>
  14. <animation>
  15. <type>pick</type>
  16. <object-name>eltswitch</object-name>
  17. <visible>true</visible>
  18. <action>
  19. <button>0</button>
  20. <repeatable>false</repeatable>
  21. <binding>
  22. <command>property-toggle</command>
  23. <property>/ELT/armed</property>
  24. <value>1</value>
  25. </binding>
  26. </action>
  27. <action>
  28. <button>3</button>
  29. <repeatable>false</repeatable>
  30. <binding>
  31. <command>nasal</command>
  32. <script>ec130.ELT_test();</script>
  33. </binding>
  34. </action>
  35. <hovered>
  36. <binding>
  37. <command>set-tooltip</command>
  38. <tooltip-id>elt</tooltip-id>
  39. <label>LMB -> toggle ARMED,wheel forward -> Test</label>
  40. </binding>
  41. </hovered>
  42. </animation>
  43. <!--
  44. <animation>
  45. <type>knob</type>
  46. <object-name>eltswitch</object-name>
  47. <visible>true</visible>
  48. <drag-direction>vertical</drag-direction>
  49. <center>
  50. <x-m>0.000</x-m>
  51. <y-m>0.000</y-m>
  52. <z-m>0.000</z-m>
  53. </center>
  54. <axis>
  55. <x> 0</x>
  56. <y> 1</y>
  57. <z> 0</z>
  58. </axis>
  59. <action>
  60. <binding>
  61. <command>property-adjust</command>
  62. <property>/ELT/armed</property>
  63. <factor>-1</factor>
  64. <min>0</min>
  65. <max>1</max>
  66. <wrap>false</wrap>
  67. </binding>
  68. </action>
  69. <shift-action>
  70. <binding>
  71. <command>property-adjust</command>
  72. <property>/ELT/test</property>
  73. <factor>1</factor>
  74. <min>0</min>
  75. <max>1</max>
  76. <wrap>false</wrap>
  77. </binding>
  78. </shift-action>
  79. <hovered>
  80. <binding>
  81. <command>set-tooltip</command>
  82. <tooltip-id>elt</tooltip-id>
  83. <label>back toggle ARMED, forward -> Test</label>
  84. </binding>
  85. </hovered>
  86. </animation>
  87. -->
  88. <animation>
  89. <type>rotate</type>
  90. <object-name>eltswitch</object-name>
  91. <factor>15</factor>
  92. <property>/ELT/test</property>
  93. <center>
  94. <x-m>0.000</x-m>
  95. <y-m>0.000</y-m>
  96. <z-m>0.000</z-m>
  97. </center>
  98. <axis>
  99. <x> 0</x>
  100. <y>-1</y>
  101. <z> 0</z>
  102. </axis>
  103. </animation>
  104. <animation>
  105. <type>rotate</type>
  106. <object-name>eltswitch</object-name>
  107. <property>/ELT/armed</property>
  108. <factor>-15</factor>
  109. <center>
  110. <x-m>0.000</x-m>
  111. <y-m>0.000</y-m>
  112. <z-m>0.000</z-m>
  113. </center>
  114. <axis>
  115. <x> 0</x>
  116. <y>-1</y>
  117. <z> 0</z>
  118. </axis>
  119. </animation>
  120. <animation>
  121. <type>material</type>
  122. <object-name>light</object-name>
  123. <emission>
  124. <red> 1</red>
  125. <green>0</green>
  126. <blue> 0</blue>
  127. </emission>
  128. <condition>
  129. <or>
  130. <and>
  131. <property>systems/electrical/outputs/instrument-lights-norm</property>
  132. <or>
  133. <property>/ELT/test</property>
  134. <property>/ELT/armed</property>
  135. </or>
  136. </and>
  137. <and>
  138. <property>systems/electrical/outputs/instrument-lights2-norm</property>
  139. <or>
  140. <property>/ELT/test</property>
  141. <property>/ELT/armed</property>
  142. </or>
  143. </and>
  144. </or>
  145. </condition>
  146. </animation>
  147. <!-- dimming -->
  148. <animation>
  149. <type>material</type>
  150. <object-name>Plane</object-name>
  151. <object-name>Plane.003</object-name>
  152. <object-name>eltswitch</object-name>
  153. <condition>
  154. <property>systems/electrical/outputs/instrument-lights2-norm</property>
  155. <equals>
  156. <property>controls/lighting/instrument-lights-selection</property>
  157. <value>0</value>
  158. </equals>
  159. </condition>
  160. <emission>
  161. <red> 0.8 </red>
  162. <green> 0.8 </green>
  163. <blue> 1.0 </blue>
  164. <factor>0.3</factor>
  165. </emission>
  166. </animation>
  167. <animation>
  168. <type>material</type>
  169. <object-name>Plane</object-name>
  170. <object-name>Plane.003</object-name>
  171. <object-name>eltswitch</object-name>
  172. <condition>
  173. <greater-than>
  174. <property>controls/lighting/instrument-lights-selection</property>
  175. <value>0</value>
  176. </greater-than>
  177. </condition>
  178. <emission>
  179. <red> 0.8 </red>
  180. <green> 0.8 </green>
  181. <blue> 1.0 </blue>
  182. <factor-prop>systems/electrical/outputs/instrument-lights2-norm</factor-prop>
  183. <offset>-0.1</offset>
  184. </emission>
  185. </animation>
  186. <!-- REMBRANDT support for transparent objects -->
  187. <effect>
  188. <inherits-from>Effects/model-transparent</inherits-from>
  189. <object-name>light</object-name>
  190. <condition>
  191. <property>sim/rendering/rembrandt/enabled</property>
  192. </condition>
  193. </effect>
  194. </PropertyList>