ELT_switch_t2.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <path>eltswitch_t2.ac</path>
  4. <animation>
  5. <type>pick</type>
  6. <object-name>eltswitch</object-name>
  7. <visible>true</visible>
  8. <action>
  9. <button>0</button>
  10. <repeatable>false</repeatable>
  11. <binding>
  12. <command>property-toggle</command>
  13. <property>/ELT/armed</property>
  14. <value>1</value>
  15. </binding>
  16. </action>
  17. <action>
  18. <button>3</button>
  19. <repeatable>false</repeatable>
  20. <binding>
  21. <command>nasal</command>
  22. <script>ec130.ELT_test();</script>
  23. </binding>
  24. </action>
  25. <hovered>
  26. <binding>
  27. <command>set-tooltip</command>
  28. <tooltip-id>elt</tooltip-id>
  29. <label>LMB -> toggle ARMED,wheel forward -> Test</label>
  30. </binding>
  31. </hovered>
  32. </animation>
  33. <animation>
  34. <type>rotate</type>
  35. <object-name>eltswitch</object-name>
  36. <factor>15</factor>
  37. <property>/ELT/test</property>
  38. <center>
  39. <x-m>0.000</x-m>
  40. <y-m>0.000</y-m>
  41. <z-m>0.000</z-m>
  42. </center>
  43. <axis>
  44. <x> 0</x>
  45. <y>-1</y>
  46. <z> 0</z>
  47. </axis>
  48. </animation>
  49. <animation>
  50. <type>rotate</type>
  51. <object-name>eltswitch</object-name>
  52. <property>/ELT/armed</property>
  53. <factor>-15</factor>
  54. <center>
  55. <x-m>0.000</x-m>
  56. <y-m>0.000</y-m>
  57. <z-m>0.000</z-m>
  58. </center>
  59. <axis>
  60. <x> 0</x>
  61. <y>-1</y>
  62. <z> 0</z>
  63. </axis>
  64. </animation>
  65. <animation>
  66. <type>material</type>
  67. <object-name>light</object-name>
  68. <emission>
  69. <red> 1</red>
  70. <green>0</green>
  71. <blue> 0</blue>
  72. </emission>
  73. <condition>
  74. <or>
  75. <and>
  76. <property>systems/electrical/outputs/instrument-lights-norm</property>
  77. <or>
  78. <property>/ELT/test</property>
  79. <property>/ELT/armed</property>
  80. </or>
  81. </and>
  82. <and>
  83. <property>systems/electrical/outputs/instrument-lights2-norm</property>
  84. <or>
  85. <property>/ELT/test</property>
  86. <property>/ELT/armed</property>
  87. </or>
  88. </and>
  89. </or>
  90. </condition>
  91. </animation>
  92. <!-- dimming -->
  93. <animation>
  94. <type>material</type>
  95. <object-name>eltswitch</object-name>
  96. <condition>
  97. <property>systems/electrical/outputs/instrument-lights2-norm</property>
  98. <equals>
  99. <property>controls/lighting/instrument-lights-selection</property>
  100. <value>0</value>
  101. </equals>
  102. </condition>
  103. <emission>
  104. <red> 0.8 </red>
  105. <green> 0.8 </green>
  106. <blue> 1.0 </blue>
  107. <factor>0.3</factor>
  108. </emission>
  109. </animation>
  110. <animation>
  111. <type>material</type>
  112. <object-name>eltswitch</object-name>
  113. <condition>
  114. <greater-than>
  115. <property>controls/lighting/instrument-lights-selection</property>
  116. <value>0</value>
  117. </greater-than>
  118. </condition>
  119. <emission>
  120. <red> 0.8 </red>
  121. <green> 0.8 </green>
  122. <blue> 1.0 </blue>
  123. <factor-prop>systems/electrical/outputs/instrument-lights2-norm</factor-prop>
  124. <offset>-0.1</offset>
  125. </emission>
  126. </animation>
  127. <!-- REMBRANDT support for transparent objects -->
  128. <effect>
  129. <inherits-from>Effects/model-transparent</inherits-from>
  130. <object-name>light</object-name>
  131. <condition>
  132. <property>sim/rendering/rembrandt/enabled</property>
  133. </condition>
  134. </effect>
  135. </PropertyList>