2017-02-17 09:04:00 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<PropertyList>
|
|
|
|
|
|
|
|
<path>control-lock.ac</path>
|
|
|
|
<nopreview/>
|
|
|
|
|
|
|
|
<effect>
|
2018-09-02 19:58:05 +00:00
|
|
|
<inherits-from>Aircraft/c172p/Models/Effects/interior/lm-controllock</inherits-from>
|
2017-02-17 09:04:00 +00:00
|
|
|
<object-name>ControlLock-pocket</object-name>
|
|
|
|
<object-name>ControlLock-yoke</object-name>
|
|
|
|
</effect>
|
|
|
|
|
2018-09-16 17:13:13 +00:00
|
|
|
<animation>
|
|
|
|
<type>material</type>
|
|
|
|
<object-name>ControlLock-pocket</object-name>
|
|
|
|
<object-name>ControlLock-yoke</object-name>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<property>/sim/rendering/shaders/skydome</property>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
<emission>
|
|
|
|
<red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop>
|
|
|
|
<green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop>
|
|
|
|
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop>
|
|
|
|
</emission>
|
|
|
|
</animation>
|
|
|
|
|
2017-02-17 09:04:00 +00:00
|
|
|
<animation>
|
|
|
|
<type>select</type>
|
|
|
|
<object-name>ControlLock-yoke</object-name>
|
|
|
|
<condition>
|
|
|
|
<property>sim/model/c172p/cockpit/control-lock-visible</property>
|
|
|
|
</condition>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>select</type>
|
|
|
|
<object-name>ControlLock-pocket</object-name>
|
|
|
|
<condition>
|
|
|
|
<not>
|
|
|
|
<property>sim/model/c172p/cockpit/control-lock-visible</property>
|
|
|
|
</not>
|
|
|
|
</condition>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
|
|
|
<object-name>ControlLock-yoke</object-name>
|
|
|
|
<visible>true</visible>
|
|
|
|
<action>
|
|
|
|
<button>0</button>
|
|
|
|
<repeatable>false</repeatable>
|
|
|
|
<binding>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/model/c172p/cockpit/control-lock-placed</property>
|
|
|
|
<value>false</value>
|
|
|
|
</binding>
|
2018-09-02 19:58:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("control_lock", 1.2)</script>
|
|
|
|
</binding>
|
2017-02-17 09:04:00 +00:00
|
|
|
</action>
|
|
|
|
<hovered>
|
|
|
|
<binding>
|
|
|
|
<command>set-tooltip</command>
|
|
|
|
<tooltip-id>remove-control-lock</tooltip-id>
|
|
|
|
<label>Remove control lock</label>
|
|
|
|
</binding>
|
|
|
|
</hovered>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
<animation>
|
|
|
|
<type>pick</type>
|
|
|
|
<object-name>ControlLock-pocket</object-name>
|
|
|
|
<visible>true</visible>
|
|
|
|
<action>
|
|
|
|
<button>0</button>
|
|
|
|
<repeatable>false</repeatable>
|
|
|
|
<binding>
|
|
|
|
<condition>
|
2018-05-17 11:58:44 +00:00
|
|
|
<not>
|
|
|
|
<property>sim/model/hide-yoke</property>
|
|
|
|
</not>
|
2017-02-17 09:04:00 +00:00
|
|
|
</condition>
|
|
|
|
<command>property-assign</command>
|
|
|
|
<property>sim/model/c172p/cockpit/control-lock-placed</property>
|
|
|
|
<value>true</value>
|
|
|
|
</binding>
|
2018-09-02 19:58:05 +00:00
|
|
|
<binding>
|
|
|
|
<command>nasal</command>
|
|
|
|
<script>c172p.click("control_lock", 1.2)</script>
|
|
|
|
</binding>
|
2017-02-17 09:04:00 +00:00
|
|
|
</action>
|
|
|
|
<hovered>
|
|
|
|
<binding>
|
|
|
|
<command>set-tooltip</command>
|
|
|
|
<tooltip-id>place-control-lock</tooltip-id>
|
|
|
|
<label>Place control lock</label>
|
|
|
|
</binding>
|
|
|
|
</hovered>
|
|
|
|
</animation>
|
|
|
|
|
|
|
|
</PropertyList>
|