left_float.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--emergency float -->
  2. <PropertyList>
  3. <path>left_float.ac</path>
  4. <animation>
  5. <type>scale</type>
  6. <object-name>left_float</object-name>
  7. <property>sim/multiplay/generic/float[0]</property>
  8. <x-min>1.0</x-min>
  9. <y-min>1.0</y-min>
  10. <z-min>1.0</z-min>
  11. <x-factor>2</x-factor>
  12. <y-factor>10</y-factor>
  13. <z-factor>10</z-factor>
  14. </animation>
  15. <animation>
  16. <type>select</type>
  17. <object-name>left_float</object-name>
  18. <condition>
  19. <property>sim/model/ec130/emerg_floats</property>
  20. </condition>
  21. </animation>
  22. <animation>
  23. <type>pick</type>
  24. <object-name>left_float</object-name>
  25. <action>
  26. <button>0</button>
  27. <repeatable>true</repeatable>
  28. <binding>
  29. <command>nasal</command>
  30. <script>ec130.toggle_floats();</script>
  31. </binding>
  32. </action>
  33. <hovered>
  34. <binding>
  35. <command>set-tooltip</command>
  36. <tooltip-id>left_float</tooltip-id>
  37. <label>%s</label>
  38. <property>controls/gear/floats-inflat</property>
  39. <mapping>nasal</mapping>
  40. <script>
  41. var mode = ['inflate', 'repack'];
  42. return mode[arg[0]];
  43. </script>
  44. </binding>
  45. </hovered>
  46. </animation>
  47. </PropertyList>