kas297(2).xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?xml version="1.0"?>
  2. <!--
  3. KAS 297 ALTITUDE SELECTOR
  4. Syd Adams
  5. *** requires kfc200.nas to run ***
  6. -->
  7. <PropertyList>
  8. <path>kas297.ac</path>
  9. <animation>
  10. <type>material</type>
  11. <object-name>Arm.btn</object-name>
  12. <object-name>Set.knob</object-name>
  13. <emission>
  14. <red>0.028</red>
  15. <green>0.014</green>
  16. <blue>0.007</blue>
  17. <factor-prop>systems/electrical/outputs/instrument-lights</factor-prop>
  18. </emission>
  19. </animation>
  20. <animation>
  21. <type>select</type>
  22. <object-name>altmsg</object-name>
  23. <object-name>altmsg.001</object-name>
  24. <object-name>altmsg.002</object-name>
  25. <object-name>altmsg.003</object-name>
  26. <object-name>altmsg.004</object-name>
  27. <condition>
  28. <greater-than>
  29. <property>systems/electrical/volts</property>
  30. <value>1</value>
  31. </greater-than>
  32. </condition>
  33. </animation>
  34. <animation>
  35. <type>select</type>
  36. <object-name>Alert.msg</object-name>
  37. <condition>
  38. <and>
  39. <property>/instrumentation/kfc200/alt-alert</property>
  40. <greater-than>
  41. <property>systems/electrical/volts</property>
  42. <value>1</value>
  43. </greater-than>
  44. </and>
  45. </condition>
  46. </animation>
  47. <animation>
  48. <type>select</type>
  49. <object-name>Arm.msg</object-name>
  50. <condition>
  51. <and>
  52. <equals>
  53. <property>/instrumentation/kfc200/vnav</property>
  54. <value>1</value>
  55. </equals>
  56. <greater-than>
  57. <property>systems/electrical/volts</property>
  58. <value>1</value>
  59. </greater-than>
  60. </and>
  61. </condition>
  62. </animation>
  63. <!-- Altitude Select -->
  64. <animation>
  65. <type>textranslate</type>
  66. <object-name>altmsg</object-name>
  67. <property>instrumentation/kfc200/alt-preset</property>
  68. <factor>0.00001</factor>
  69. <step>10000</step>
  70. <axis>
  71. <x>0</x>
  72. <y>1</y>
  73. <z>0</z>
  74. </axis>
  75. </animation>
  76. <animation>
  77. <type>textranslate</type>
  78. <object-name>altmsg.001</object-name>
  79. <property>instrumentation/kfc200/alt-preset</property>
  80. <factor>0.0001</factor>
  81. <step>1000</step>
  82. <axis>
  83. <x>0</x>
  84. <y>1</y>
  85. <z>0</z>
  86. </axis>
  87. </animation>
  88. <animation>
  89. <type>textranslate</type>
  90. <object-name>altmsg.002</object-name>
  91. <property>instrumentation/kfc200/alt-preset</property>
  92. <factor>0.001</factor>
  93. <step>100</step>
  94. <axis>
  95. <x>0</x>
  96. <y>1</y>
  97. <z>0</z>
  98. </axis>
  99. </animation>
  100. <animation>
  101. <type>textranslate</type>
  102. <object-name>altmsg.003</object-name>
  103. <property>instrumentation/kfc200/alt-preset</property>
  104. <factor>0.01</factor>
  105. <step>10</step>
  106. <axis>
  107. <x>0</x>
  108. <y>1</y>
  109. <z>0</z>
  110. </axis>
  111. </animation>
  112. <animation>
  113. <type>textranslate</type>
  114. <object-name>altmsg.004</object-name>
  115. <property>instrumentation/kfc200/alt-preset</property>
  116. <factor>0.1</factor>
  117. <step>1</step>
  118. <axis>
  119. <x>0</x>
  120. <y>1</y>
  121. <z>0</z>
  122. </axis>
  123. </animation>
  124. <!-- OSG animations
  125. <animation>
  126. <type>pick</type>
  127. <object-name>Alt.decrease</object-name>
  128. <action>
  129. <button>0</button>
  130. <repeatable>true</repeatable>
  131. <binding>
  132. <command>property-adjust</command>
  133. <property>instrumentation/kfc200/alt-preset</property>
  134. <step>-100</step>
  135. <min>0.0</min>
  136. <max>99999.0</max>
  137. <wrap>false</wrap>
  138. </binding>
  139. </action>
  140. </animation>
  141. <animation>
  142. <type>pick</type>
  143. <object-name>Alt.decrease</object-name>
  144. <action>
  145. <button>1</button>
  146. <repeatable>true</repeatable>
  147. <binding>
  148. <command>property-adjust</command>
  149. <property>instrumentation/kfc200/alt-preset</property>
  150. <step>-1000</step>
  151. <min>0.0</min>
  152. <max>99999.0</max>
  153. <wrap>false</wrap>
  154. </binding>
  155. </action>
  156. </animation>
  157. <animation>
  158. <type>pick</type>
  159. <object-name>Alt.increase</object-name>
  160. <action>
  161. <button>0</button>
  162. <repeatable>true</repeatable>
  163. <binding>
  164. <command>property-adjust</command>
  165. <property>instrumentation/kfc200/alt-preset</property>
  166. <step>100</step>
  167. <min>0.0</min>
  168. <max>99999.0</max>
  169. <wrap>false</wrap>
  170. </binding>
  171. </action>
  172. </animation>
  173. <animation>
  174. <type>pick</type>
  175. <object-name>Alt.increase</object-name>
  176. <action>
  177. <button>1</button>
  178. <repeatable>true</repeatable>
  179. <binding>
  180. <command>property-adjust</command>
  181. <property>instrumentation/kfc200/alt-preset</property>
  182. <step>1000</step>
  183. <min>0.0</min>
  184. <max>99999.0</max>
  185. <wrap>false</wrap>
  186. </binding>
  187. </action>
  188. </animation>
  189. <animation>
  190. <type>pick</type>
  191. <object-name>Alt.arm</object-name>
  192. <action>
  193. <button>0</button>
  194. <repeatable>false</repeatable>
  195. <binding>
  196. <command>nasal</command>
  197. <script>
  198. if(getprop("instrumentation/kfc200/vnav")!= 1){
  199. setprop("instrumentation/kfc200/vnav",1);
  200. setprop("autopilot/settings/target-altitude-ft",getprop("instrumentation/kfc200/alt-preset"));
  201. }else{
  202. setprop("instrumentation/kfc200/vnav",0);
  203. }
  204. </script>
  205. </binding>
  206. </action>
  207. </animation>
  208. -->
  209. </PropertyList>