enginepanel.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <path>enginepanel.ac</path>
  4. <animation>
  5. <type>select</type>
  6. <object-name>ebcautext</object-name>
  7. <condition>
  8. <not>
  9. <property>controls/engines/engine/ebcautest</property>
  10. </not>
  11. </condition>
  12. </animation>
  13. <animation>
  14. <type>select</type>
  15. <object-name>ebcautext_active</object-name>
  16. <condition>
  17. <property>controls/engines/engine/ebcautest</property>
  18. </condition>
  19. </animation>
  20. <animation>
  21. <type>pick</type>
  22. <object-name>switchguard</object-name>
  23. <action>
  24. <button>0</button>
  25. <repeatable>false</repeatable>
  26. <binding>
  27. <condition>
  28. <property>controls/engines/engine/startselector</property>
  29. </condition>
  30. <command>property-toggle</command>
  31. <property>controls/engines/engine/switchguard</property>
  32. </binding>
  33. </action>
  34. <hovered>
  35. <binding>
  36. <command>set-tooltip</command>
  37. <tooltip-id>switchguard</tooltip-id>
  38. <!--
  39. <label>guard/unlock</label>
  40. -->
  41. <label>%s</label>
  42. <property>controls/engines/engine/switchguard</property>
  43. <mapping>nasal</mapping>
  44. <script>
  45. var mode = ['guard', 'unlock'];
  46. return mode[arg[0]];
  47. </script>
  48. </binding>
  49. </hovered>
  50. </animation>
  51. <animation>
  52. <type>pick</type>
  53. <object-name>startselector</object-name>
  54. <action>
  55. <repeatable>false</repeatable>
  56. <button>0</button>
  57. <binding>
  58. <command>nasal</command>
  59. <script>ec130.switch_startselector();</script>
  60. </binding>
  61. </action>
  62. <hovered>
  63. <binding>
  64. <command>set-tooltip</command>
  65. <tooltip-id>startselector</tooltip-id>
  66. <!--
  67. <label>engine starter</label>
  68. -->
  69. <label>%s</label>
  70. <property>controls/engines/engine/startselector</property>
  71. <mapping>nasal</mapping>
  72. <script>
  73. var mode = ['start Engine', 'switch OFF Engine'];
  74. return mode[arg[0]];
  75. </script>
  76. </binding>
  77. </hovered>
  78. </animation>
  79. <animation>
  80. <type>rotate</type>
  81. <object-name>switchguard</object-name>
  82. <condition>
  83. <property>controls/engines/engine/startselector</property>
  84. </condition>
  85. <property>controls/engines/engine/switchguard</property>
  86. <factor>105</factor>
  87. <offset-deg>-105</offset-deg>
  88. <center>
  89. <x-m>0.014</x-m>
  90. <y-m>0.041</y-m>
  91. <z-m>0.032</z-m>
  92. </center>
  93. <axis>
  94. <x>0</x>
  95. <y>0</y>
  96. <z>1</z>
  97. </axis>
  98. </animation>
  99. <animation>
  100. <type>rotate</type>
  101. <object-name>startselector</object-name>
  102. <property>controls/engines/engine/startselector</property>
  103. <factor>40</factor>
  104. <offset-deg>-10</offset-deg>
  105. <center>
  106. <x-m>0.009</x-m>
  107. <y-m>0.059</y-m>
  108. <z-m>0.001</z-m>
  109. </center>
  110. <axis>
  111. <x>0</x>
  112. <y>-1</y>
  113. <z>0</z>
  114. </axis>
  115. </animation>
  116. <animation>
  117. <type>pick</type>
  118. <object-name>ebcauguard</object-name>
  119. <action>
  120. <button>0</button>
  121. <repeatable>false</repeatable>
  122. <binding>
  123. <command>property-toggle</command>
  124. <property>controls/engines/engine/ebcauguard</property>
  125. </binding>
  126. </action>
  127. <hovered>
  128. <binding>
  129. <command>set-tooltip</command>
  130. <tooltip-id>ebcauguard</tooltip-id>
  131. <!--
  132. <label>guard/unlock</label>
  133. -->
  134. <label>%s</label>
  135. <property>controls/engines/engine/ebcauguard</property>
  136. <mapping>nasal</mapping>
  137. <script>
  138. var mode = ['guard', 'unlock'];
  139. return mode[arg[0]];
  140. </script>
  141. </binding>
  142. </hovered>
  143. </animation>
  144. <animation>
  145. <type>pick</type>
  146. <object-name>ebcaubutton</object-name>
  147. <action>
  148. <button>0</button>
  149. <repeatable>false</repeatable>
  150. <binding>
  151. <command>nasal</command>
  152. <script>ec130.toggle_ebcautest();</script>
  153. </binding>
  154. </action>
  155. <hovered>
  156. <binding>
  157. <command>set-tooltip</command>
  158. <tooltip-id>ebcautest</tooltip-id>
  159. <!--
  160. <label>guard/unlock</label>
  161. -->
  162. <label>%s</label>
  163. <property>controls/engines/engine/ebcautest</property>
  164. <mapping>nasal</mapping>
  165. <script>
  166. var mode = ['test', 'release'];
  167. return mode[arg[0]];
  168. </script>
  169. </binding>
  170. </hovered>
  171. </animation>
  172. <animation>
  173. <type>rotate</type>
  174. <object-name>ebcauguard</object-name>
  175. <property>controls/engines/engine/ebcauguard</property>
  176. <factor>105</factor>
  177. <offset-deg>-105</offset-deg>
  178. <center>
  179. <x-m>0.011</x-m>
  180. <y-m>0.041</y-m>
  181. <z-m>0.015</z-m>
  182. </center>
  183. <axis>
  184. <x>0</x>
  185. <y>1</y>
  186. <z>0</z>
  187. </axis>
  188. </animation>
  189. <!-- dimming -->
  190. <animation>
  191. <type>material</type>
  192. <object-name>Plane</object-name>
  193. <object-name>ebcautext</object-name>
  194. <object-name>ebcautext_active</object-name>
  195. <condition>
  196. <property>systems/electrical/outputs/instrument-lights2-norm</property>
  197. <equals>
  198. <property>controls/lighting/instrument-lights-selection</property>
  199. <value>0</value>
  200. </equals>
  201. </condition>
  202. <emission>
  203. <red> 0.8 </red>
  204. <green> 0.8 </green>
  205. <blue> 1.0 </blue>
  206. <factor>0.5</factor>
  207. </emission>
  208. </animation>
  209. <animation>
  210. <type>material</type>
  211. <object-name>Plane</object-name>
  212. <object-name>ebcautext</object-name>
  213. <object-name>ebcautext_active</object-name>
  214. <condition>
  215. <greater-than>
  216. <property>controls/lighting/instrument-lights-selection</property>
  217. <value>0</value>
  218. </greater-than>
  219. </condition>
  220. <emission>
  221. <red> 0.8 </red>
  222. <green> 0.8 </green>
  223. <blue> 1.0 </blue>
  224. <factor-prop>systems/electrical/outputs/instrument-lights2-norm</factor-prop>
  225. </emission>
  226. </animation>
  227. <animation>
  228. <type>material</type>
  229. <object-name>ebcautext</object-name>
  230. <condition>
  231. <not>
  232. <property>controls/engines/engine/ebcautest</property>
  233. </not>
  234. </condition>
  235. <emission>
  236. <red> 0.8 </red>
  237. <green> 0.8 </green>
  238. <blue> 1.0 </blue>
  239. <factor-prop>systems/electrical/outputs/instrument-lights2-norm</factor-prop>
  240. <offset>-0.2</offset>
  241. </emission>
  242. </animation>
  243. <animation>
  244. <type>material</type>
  245. <object-name>ebcautext_active</object-name>
  246. <condition>
  247. <property>controls/engines/engine/ebcautest</property>
  248. </condition>
  249. <emission>
  250. <red> 1.0 </red>
  251. <green> 1.0 </green>
  252. <blue> 0.0 </blue>
  253. <factor-prop>systems/electrical/outputs/instrument-lights2-norm</factor-prop>
  254. <offset>0.8</offset>
  255. </emission>
  256. </animation>
  257. <!-- REMBRANDT support for transparent objects -->
  258. <effect>
  259. <inherits-from>Effects/model-transparent</inherits-from>
  260. <object-name>ebcauguard</object-name>
  261. <object-name>ebcautext</object-name>
  262. <object-name>ebcautext_active</object-name>
  263. <condition>
  264. <property>sim/rendering/rembrandt/enabled</property>
  265. </condition>
  266. </effect>
  267. </PropertyList>