This repository has been archived on 2021-09-26. You can view files and clone it, but cannot push or open issues or pull requests.
IDG-A32X/Models/Instruments/OHpanel/OHpanelEPR.xml

280 lines
6.4 KiB
XML
Raw Normal View History

2017-06-23 01:21:13 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<!--
2017-07-14 15:57:14 +00:00
#######################################
# Copyright (c) A3XX Development Team #
#######################################
-->
2017-06-23 01:21:13 +00:00
<PropertyList>
<path>res/ohpanelEPR.ac</path>
<!-- No button lights without power! -->
<animation>
<object-name>Eng1N1Btn2O</object-name>
<object-name>Eng2N1Btn2O</object-name>
<condition>
<or>
<greater-than-equals>
<property>systems/electrical/bus/dc1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>systems/electrical/bus/dc2</property>
<value>25</value>
</greater-than-equals>
</or>
</condition>
</animation>
<!-- N1 Mode switches -->
<animation>
<type>pick</type>
<object-name>Eng1N1Btn</object-name>
<object-name>Eng1N1Btn2O</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<condition>
2017-07-03 00:52:19 +00:00
<and>
<equals>
<property>controls/OH/protectors/eng1-n1</property>
2017-07-03 00:52:19 +00:00
<value>1</value>
</equals>
<or>
<greater-than-equals>
<property>systems/electrical/bus/dc1</property>
2017-07-03 00:52:19 +00:00
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>systems/electrical/bus/dc2</property>
2017-07-03 00:52:19 +00:00
<value>25</value>
</greater-than-equals>
</or>
</and>
</condition>
<command>property-toggle</command>
<property>controls/fadec/n1mode1</property>
</binding>
<binding>
2017-07-03 00:52:19 +00:00
<condition>
<equals>
<property>controls/OH/protectors/eng1-n1</property>
2017-07-03 00:52:19 +00:00
<value>1</value>
</equals>
</condition>
<command>nasal</command>
<script>setprop("/sim/sounde/oh-btn", 1);</script>
</binding>
</action>
</animation>
2017-07-03 00:52:19 +00:00
<animation>
<type>pick</type>
<object-name>Eng1N1Btn</object-name>
<object-name>Eng1N1Btn2O</object-name>
<object-name>Eng1N1Prot</object-name>
<action>
<button>1</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>controls/OH/protectors/eng1-n1</property>
2017-07-03 00:52:19 +00:00
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>controls/OH/protectors/eng1-n1</property>
2017-07-03 00:52:19 +00:00
<value>0</value>
</binding>
<binding>
<command>nasal</command>
<script>setprop("/sim/sounde/oh-cover", 1);</script>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>Eng1N1Prot</object-name>
<property>controls/OH/protectors/eng1-n1</property>
2017-07-03 00:52:19 +00:00
<factor>-145</factor>
<axis>
<x1-m>0.00201</x1-m>
<y1-m>0.25404</y1-m>
<z1-m>-0.20418</z1-m>
<x2-m>0.00489</x2-m>
<y2-m>0.27681</y2-m>
<z2-m>-0.20418</z2-m>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>Eng1N1Btn2O</object-name>
<condition>
<or>
<equals>
<property>controls/fadec/n1mode1</property>
<value>1</value>
</equals>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<animation>
<type>pick</type>
<object-name>Eng2N1Btn</object-name>
<object-name>Eng2N1Btn2O</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<condition>
2017-07-03 00:52:19 +00:00
<and>
<equals>
<property>controls/OH/protectors/eng2-n1</property>
2017-07-03 00:52:19 +00:00
<value>1</value>
</equals>
<or>
<greater-than-equals>
<property>systems/electrical/bus/dc1</property>
2017-07-03 00:52:19 +00:00
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>systems/electrical/bus/dc2</property>
2017-07-03 00:52:19 +00:00
<value>25</value>
</greater-than-equals>
</or>
</and>
</condition>
<command>property-toggle</command>
<property>controls/fadec/n1mode2</property>
</binding>
<binding>
2017-07-03 00:52:19 +00:00
<condition>
<equals>
<property>controls/OH/protectors/eng2-n1</property>
2017-07-03 00:52:19 +00:00
<value>1</value>
</equals>
</condition>
<command>nasal</command>
<script>setprop("/sim/sounde/oh-btn", 1);</script>
</binding>
</action>
</animation>
2017-07-03 00:52:19 +00:00
<animation>
<type>pick</type>
<object-name>Eng2N1Btn</object-name>
<object-name>Eng2N1Btn2O</object-name>
<object-name>Eng2N1Prot</object-name>
<action>
<button>1</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>controls/OH/protectors/eng2-n1</property>
2017-07-03 00:52:19 +00:00
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>controls/OH/protectors/eng2-n1</property>
2017-07-03 00:52:19 +00:00
<value>0</value>
</binding>
<binding>
<command>nasal</command>
<script>setprop("/sim/sounde/oh-cover", 1);</script>
</binding>
</mod-up>
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>Eng2N1Prot</object-name>
<property>controls/OH/protectors/eng2-n1</property>
2017-07-03 00:52:19 +00:00
<factor>-145</factor>
<axis>
<x1-m>0.00616</x1-m>
<y1-m>0.2855</y1-m>
<z1-m>-0.20418</z1-m>
<x2-m>0.00904</x2-m>
<y2-m>0.30828</y2-m>
<z2-m>-0.20418</z2-m>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>Eng2N1Btn2O</object-name>
<condition>
<or>
<equals>
<property>controls/fadec/n1mode2</property>
<value>1</value>
</equals>
<equals>
<property>controls/switches/annun-test</property>
<value>1</value>
</equals>
</or>
</condition>
</animation>
<!-- Panel lighting -->
<animation>
<name>Panel lighting select</name>
<type>select</type>
<object-name>MarkingLts</object-name>
<condition>
<or>
<not>
<property>controls/lighting/dome-norm</property>
</not>
<and>
<equals>
<property>controls/lighting/dome-norm</property>
<value>0.5</value>
</equals>
<greater-than>
<property>controls/lighting/overhead-panel-norm</property>
<value>0.25</value>
</greater-than>
</and>
<and>
<equals>
<property>controls/lighting/dome-norm</property>
<value>1</value>
</equals>
<greater-than>
<property>controls/lighting/overhead-panel-norm</property>
<value>0.5</value>
</greater-than>
</and>
</or>
</condition>
</animation>
<animation>
<name>Panel lighting</name>
<type>material</type>
<object-name>MarkingLts</object-name>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
<factor-prop>controls/lighting/overhead-panel-norm</factor-prop>
</emission>
</animation>
2017-06-23 01:21:13 +00:00
</PropertyList>