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

296 lines
6.8 KiB
XML
Raw Normal View History

2017-06-23 01:21:13 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2019-01-01 06:03:06 +00:00
<!-- Copyright (c) 2019 Joshua Davidson (it0uchpods) -->
2017-06-23 01:21:13 +00:00
<PropertyList>
<path>res/ohpanelEPR.ac</path>
<!-- No button lights without power! -->
<animation>
2017-07-21 17:38:04 +00:00
<type>select</type>
<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</name>
<type>material</type>
<object-name>MarkingLts</object-name>
<condition>
<not>
<and>
<greater-than>
<property>sim/model/lights/dome-light</property>
<value>0</value>
</greater-than>
<less-than>
<property>controls/lighting/overhead-panel-norm</property>
<value>0.25</value>
</less-than>
</and>
</not>
</condition>
<emission>
<red>1</red>
<green>0.824</green>
<blue>0.518</blue>
<factor-prop>controls/lighting/overhead-panel-norm</factor-prop>
</emission>
</animation>
2019-01-19 17:32:49 +00:00
<animation>
<name>Panel lighting</name>
<type>material</type>
<object-name>MarkingLts</object-name>
<condition>
<and>
<not>
<greater-than>
<property>controls/lighting/overhead-panel-norm</property>
<value>0.25</value>
</greater-than>
</not>
<greater-than>
<property>sim/model/lights/dome-light</property>
<value>0</value>
</greater-than>
</and>
</condition>
<emission>
<red>0.20</red>
<green>0.20</green>
<blue>0.20</blue>
<factor-prop>sim/model/lights/dome-light</factor-prop>
</emission>
</animation>
<animation>
<name>Panel lighting</name>
<type>material</type>
<object-name>Panel</object-name>
<emission>
<red>0.3</red>
<green>0.3</green>
<blue>0.3</blue>
<factor-prop>sim/model/lights/dome-light</factor-prop>
</emission>
</animation>
2017-06-23 01:21:13 +00:00
</PropertyList>