master_switch.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0"?>
  2. <PropertyList>
  3. <path>rocker_switch.ac</path>
  4. <animation>
  5. <type>material</type>
  6. <object-name>SwitchAlt</object-name>
  7. <object-name>SwitchBat</object-name>
  8. <emission>
  9. <red>0.2</red>
  10. <green>0.1</green>
  11. <blue>0.05</blue>
  12. <factor-prop>/systems/electrical/outputs/panel-norm</factor-prop>
  13. </emission>
  14. </animation>
  15. <animation>
  16. <type>rotate</type>
  17. <object-name>SwitchAlt</object-name>
  18. <property>/controls/switches/alternator</property>
  19. <interpolation>
  20. <entry><ind>0</ind><dep> 0</dep></entry>
  21. <entry><ind>1</ind><dep>40</dep></entry>
  22. </interpolation>
  23. <axis>
  24. <x>0</x>
  25. <y>-1</y>
  26. <z>0</z>
  27. </axis>
  28. <center>
  29. <x-m>-.003</x-m>
  30. <y-m>0</y-m>
  31. <z-m>0</z-m>
  32. </center>
  33. </animation>
  34. <animation>
  35. <type>rotate</type>
  36. <object-name>SwitchBat</object-name>
  37. <property>/controls/switches/battery</property>
  38. <interpolation>
  39. <entry><ind>0</ind><dep> 0</dep></entry>
  40. <entry><ind>1</ind><dep>40</dep></entry>
  41. </interpolation>
  42. <axis>
  43. <x>0</x>
  44. <y>-1</y>
  45. <z>0</z>
  46. </axis>
  47. <center>
  48. <x-m>-.003</x-m>
  49. <y-m>0</y-m>
  50. <z-m>0</z-m>
  51. </center>
  52. </animation>
  53. <animation>
  54. <type>pick</type>
  55. <object-name>SwitchAlt</object-name>
  56. <action>
  57. <button>0</button>
  58. <repeatable>false</repeatable>
  59. <binding>
  60. <command>property-toggle</command>
  61. <property>/controls/switches/alternator</property>
  62. </binding>
  63. </action>
  64. </animation>
  65. <animation>
  66. <type>pick</type>
  67. <object-name>SwitchBat</object-name>
  68. <action>
  69. <button>0</button>
  70. <repeatable>false</repeatable>
  71. <binding>
  72. <command>property-toggle</command>
  73. <property>/controls/switches/battery</property>
  74. </binding>
  75. </action>
  76. </animation>
  77. </PropertyList>