levers.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <path>levers.ac</path>
  4. <animation>
  5. <type>rotate</type>
  6. <object-name>cutofflever</object-name>
  7. <property>controls/engines/engine/cutoff-norm</property>
  8. <factor>-30</factor>
  9. <center>
  10. <x-m> 0 </x-m>
  11. <y-m>-0.031 </y-m>
  12. <z-m>-0.035 </z-m>
  13. </center>
  14. <axis>
  15. <x> 0 </x>
  16. <y> 1 </y>
  17. <z> 0 </z>
  18. </axis>
  19. </animation>
  20. <animation>
  21. <type>rotate</type>
  22. <object-name>cutoff_guard</object-name>
  23. <property>controls/engines/engine/cutoffguard</property>
  24. <factor>30</factor>
  25. <offset-deg>-30</offset-deg>
  26. <center>
  27. <x-m> 0 </x-m>
  28. <y-m>-0.031 </y-m>
  29. <z-m>-0.035 </z-m>
  30. </center>
  31. <axis>
  32. <x> 0 </x>
  33. <y> 1 </y>
  34. <z> 0 </z>
  35. </axis>
  36. </animation>
  37. <animation>
  38. <type>pick</type>
  39. <object-name>cutofflever</object-name>
  40. <action>
  41. <button>0</button>
  42. <repeatable>false</repeatable>
  43. <binding>
  44. <command>nasal</command>
  45. <script>ec130.toggle_cutoff();</script>
  46. </binding>
  47. </action>
  48. <hovered>
  49. <binding>
  50. <condition>
  51. <not>
  52. <property>controls/engines/engine/cutoffguard</property>
  53. </not>
  54. </condition>
  55. <command>set-tooltip</command>
  56. <tooltip-id>cutoff_lever</tooltip-id>
  57. <!--
  58. <label>cut off fuel</label>
  59. -->
  60. <label>%s</label>
  61. <property>controls/engines/engine/cutoff</property>
  62. <mapping>nasal</mapping>
  63. <script>
  64. var mode = ['cut off fuel', 'open fuel'];
  65. return mode[arg[0]];
  66. </script>
  67. </binding>
  68. </hovered>
  69. </animation>
  70. <animation>
  71. <type>pick</type>
  72. <object-name>cutoff_guard</object-name>
  73. <action>
  74. <button>0</button>
  75. <repeatable>false</repeatable>
  76. <binding>
  77. <condition>
  78. <not>
  79. <property>controls/engines/engine/cutoff</property>
  80. </not>
  81. </condition>
  82. <command>property-toggle</command>
  83. <property>controls/engines/engine/cutoffguard</property>
  84. </binding>
  85. </action>
  86. <hovered>
  87. <binding>
  88. <condition>
  89. <not>
  90. <property>controls/engines/engine/cutoff</property>
  91. </not>
  92. </condition>
  93. <command>set-tooltip</command>
  94. <tooltip-id>cutoff_guard</tooltip-id>
  95. <!--
  96. <label>guard</label>
  97. -->
  98. <label>%s cut-off</label>
  99. <property>controls/engines/engine/cutoffguard</property>
  100. <mapping>nasal</mapping>
  101. <script>
  102. var mode = ['guard', 'release'];
  103. return mode[arg[0]];
  104. </script>
  105. </binding>
  106. </hovered>
  107. </animation>
  108. <animation>
  109. <type>knob</type>
  110. <object-name>rotorbrakelever</object-name>
  111. <property>controls/rotor/brake</property>
  112. <factor>-30.0</factor>
  113. <drag-direction>horizontal</drag-direction>
  114. <center>
  115. <x-m> 0 </x-m>
  116. <y-m>-0.031 </y-m>
  117. <z-m>-0.035 </z-m>
  118. </center>
  119. <axis>
  120. <x> 0 </x>
  121. <y> 1 </y>
  122. <z> 0 </z>
  123. </axis>
  124. <action>
  125. <button>0</button>
  126. <repeatable>true</repeatable>
  127. <interval-sec>0.1</interval-sec>
  128. <binding>
  129. <condition>
  130. <not>
  131. <property>controls/rotor/brake-locked</property>
  132. </not>
  133. </condition>
  134. <command>property-adjust</command>
  135. <property>controls/rotor/brake</property>
  136. <factor>0.15</factor>
  137. <min>0</min>
  138. <max>1</max>
  139. <wrap>0</wrap>
  140. </binding>
  141. </action>
  142. <hovered>
  143. <binding>
  144. <condition>
  145. <not>
  146. <property>controls/rotor/brake-locked</property>
  147. </not>
  148. </condition>
  149. <command>set-tooltip</command>
  150. <label>Rotor Brake: %1.0f</label>
  151. <mapping>percent</mapping>
  152. <tooltip-id>Rotor Brake</tooltip-id>
  153. <property>controls/rotor/brake</property>
  154. </binding>
  155. </hovered>
  156. </animation>
  157. <animation>
  158. <type>rotate</type>
  159. <object-name>rotorbrake_lock</object-name>
  160. <property>controls/rotor/brake</property>
  161. <factor>-30.0</factor>
  162. <center>
  163. <x-m> 0 </x-m>
  164. <y-m>-0.031 </y-m>
  165. <z-m>-0.035 </z-m>
  166. </center>
  167. <axis>
  168. <x> 0 </x>
  169. <y> 1 </y>
  170. <z> 0 </z>
  171. </axis>
  172. </animation>
  173. <animation>
  174. <type>translate</type>
  175. <object-name>rotorbrake_lock</object-name>
  176. <property>controls/rotor/brake-locked</property>
  177. <factor>0.005</factor>
  178. <axis>
  179. <x> 1 </x>
  180. <y> 0 </y>
  181. <z> 0.5 </z>
  182. </axis>
  183. </animation>
  184. <animation>
  185. <type>pick</type>
  186. <object-name>rotorbrake_lock</object-name>
  187. <action>
  188. <button>0</button>
  189. <repeatable>false</repeatable>
  190. <binding>
  191. <condition>
  192. <equals>
  193. <property>controls/rotor/brake</property>
  194. <value>1</value>
  195. </equals>
  196. </condition>
  197. <command>property-toggle</command>
  198. <property>controls/rotor/brake-locked</property>
  199. </binding>
  200. </action>
  201. <hovered>
  202. <binding>
  203. <condition>
  204. <equals>
  205. <property>controls/rotor/brake</property>
  206. <value>1</value>
  207. </equals>
  208. </condition>
  209. <command>set-tooltip</command>
  210. <tooltip-id>rotorbrake_lock</tooltip-id>
  211. <label>%s</label>
  212. <property>controls/rotor/brake-locked</property>
  213. <mapping>nasal</mapping>
  214. <script>
  215. var mode = ['lock', 'unlock'];
  216. return mode[arg[0]];
  217. </script>
  218. </binding>
  219. </hovered>
  220. </animation>
  221. </PropertyList>