123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <?xml version="1.0"?>
- <PropertyList>
- <path>levers.ac</path>
- <animation>
- <type>rotate</type>
- <object-name>cutofflever</object-name>
- <property>controls/engines/engine/cutoff-norm</property>
- <factor>-30</factor>
- <center>
- <x-m> 0 </x-m>
- <y-m>-0.031 </y-m>
- <z-m>-0.035 </z-m>
- </center>
- <axis>
- <x> 0 </x>
- <y> 1 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>cutoff_guard</object-name>
- <property>controls/engines/engine/cutoffguard</property>
- <factor>30</factor>
- <offset-deg>-30</offset-deg>
- <center>
- <x-m> 0 </x-m>
- <y-m>-0.031 </y-m>
- <z-m>-0.035 </z-m>
- </center>
- <axis>
- <x> 0 </x>
- <y> 1 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>pick</type>
- <object-name>cutofflever</object-name>
- <action>
- <button>0</button>
- <repeatable>false</repeatable>
- <binding>
- <command>nasal</command>
- <script>ec130.toggle_cutoff();</script>
- </binding>
- </action>
- <hovered>
- <binding>
- <condition>
- <not>
- <property>controls/engines/engine/cutoffguard</property>
- </not>
- </condition>
- <command>set-tooltip</command>
- <tooltip-id>cutoff_lever</tooltip-id>
- <!--
- <label>cut off fuel</label>
- -->
- <label>%s</label>
- <property>controls/engines/engine/cutoff</property>
- <mapping>nasal</mapping>
- <script>
- var mode = ['cut off fuel', 'open fuel'];
- return mode[arg[0]];
- </script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>pick</type>
- <object-name>cutoff_guard</object-name>
- <action>
- <button>0</button>
- <repeatable>false</repeatable>
- <binding>
- <condition>
- <not>
- <property>controls/engines/engine/cutoff</property>
- </not>
- </condition>
- <command>property-toggle</command>
- <property>controls/engines/engine/cutoffguard</property>
- </binding>
- </action>
- <hovered>
- <binding>
- <condition>
- <not>
- <property>controls/engines/engine/cutoff</property>
- </not>
- </condition>
- <command>set-tooltip</command>
- <tooltip-id>cutoff_guard</tooltip-id>
- <!--
- <label>guard</label>
- -->
- <label>%s cut-off</label>
- <property>controls/engines/engine/cutoffguard</property>
- <mapping>nasal</mapping>
- <script>
- var mode = ['guard', 'release'];
- return mode[arg[0]];
- </script>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>knob</type>
- <object-name>rotorbrakelever</object-name>
- <property>controls/rotor/brake</property>
- <factor>-30.0</factor>
- <drag-direction>horizontal</drag-direction>
- <center>
- <x-m> 0 </x-m>
- <y-m>-0.031 </y-m>
- <z-m>-0.035 </z-m>
- </center>
- <axis>
- <x> 0 </x>
- <y> 1 </y>
- <z> 0 </z>
- </axis>
- <action>
- <button>0</button>
- <repeatable>true</repeatable>
- <interval-sec>0.1</interval-sec>
- <binding>
- <condition>
- <not>
- <property>controls/rotor/brake-locked</property>
- </not>
- </condition>
- <command>property-adjust</command>
- <property>controls/rotor/brake</property>
- <factor>0.15</factor>
- <min>0</min>
- <max>1</max>
- <wrap>0</wrap>
- </binding>
- </action>
- <hovered>
- <binding>
- <condition>
- <not>
- <property>controls/rotor/brake-locked</property>
- </not>
- </condition>
- <command>set-tooltip</command>
- <label>Rotor Brake: %1.0f</label>
- <mapping>percent</mapping>
- <tooltip-id>Rotor Brake</tooltip-id>
- <property>controls/rotor/brake</property>
- </binding>
- </hovered>
- </animation>
- <animation>
- <type>rotate</type>
- <object-name>rotorbrake_lock</object-name>
- <property>controls/rotor/brake</property>
- <factor>-30.0</factor>
- <center>
- <x-m> 0 </x-m>
- <y-m>-0.031 </y-m>
- <z-m>-0.035 </z-m>
- </center>
- <axis>
- <x> 0 </x>
- <y> 1 </y>
- <z> 0 </z>
- </axis>
- </animation>
- <animation>
- <type>translate</type>
- <object-name>rotorbrake_lock</object-name>
- <property>controls/rotor/brake-locked</property>
- <factor>0.005</factor>
- <axis>
- <x> 1 </x>
- <y> 0 </y>
- <z> 0.5 </z>
- </axis>
- </animation>
- <animation>
- <type>pick</type>
- <object-name>rotorbrake_lock</object-name>
- <action>
- <button>0</button>
- <repeatable>false</repeatable>
- <binding>
- <condition>
- <equals>
- <property>controls/rotor/brake</property>
- <value>1</value>
- </equals>
- </condition>
- <command>property-toggle</command>
- <property>controls/rotor/brake-locked</property>
- </binding>
- </action>
- <hovered>
- <binding>
- <condition>
- <equals>
- <property>controls/rotor/brake</property>
- <value>1</value>
- </equals>
- </condition>
- <command>set-tooltip</command>
- <tooltip-id>rotorbrake_lock</tooltip-id>
- <label>%s</label>
- <property>controls/rotor/brake-locked</property>
- <mapping>nasal</mapping>
- <script>
- var mode = ['lock', 'unlock'];
- return mode[arg[0]];
- </script>
- </binding>
- </hovered>
- </animation>
- </PropertyList>
|