1
0
Fork 0
A320-family/Models/Instruments/OHpanel/OHpanelEPR.xml

284 lines
6.5 KiB
XML
Raw Normal View History

2019-10-14 16:48:35 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright (c) 2020 Josh Davidson (Octal450) -->
2019-10-14 16:48:35 +00:00
<PropertyList>
<path>res/ohpanelEPR.ac</path>
<!-- No button lights without power! -->
<animation>
<type>select</type>
<object-name>Eng1N1Btn2O</object-name>
<object-name>Eng2N1Btn2O</object-name>
<condition>
<or>
<greater-than-equals>
2020-08-14 18:34:48 +00:00
<property>systems/electrical/bus/dc-1</property>
2019-10-14 16:48:35 +00:00
<value>25</value>
</greater-than-equals>
<greater-than-equals>
2020-08-14 18:34:48 +00:00
<property>systems/electrical/bus/dc-2</property>
2019-10-14 16:48:35 +00:00
<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>
<and>
<equals>
<property>controls/OH/protectors/eng1-n1</property>
<value>1</value>
</equals>
<or>
<greater-than-equals>
2020-08-14 18:34:48 +00:00
<property>systems/electrical/bus/dc-1</property>
2019-10-14 16:48:35 +00:00
<value>25</value>
</greater-than-equals>
<greater-than-equals>
2020-08-14 18:34:48 +00:00
<property>systems/electrical/bus/dc-2</property>
2019-10-14 16:48:35 +00:00
<value>25</value>
</greater-than-equals>
</or>
</and>
</condition>
<command>property-toggle</command>
<property>controls/fadec/n1mode1</property>
</binding>
2020-09-24 19:18:09 +00:00
<binding>
<command>property-assign</command>
<property>controls/OH/protectors/eng1-n1</property>
<value>0</value>
</binding>
2019-10-14 16:48:35 +00:00
<binding>
<condition>
<equals>
<property>controls/OH/protectors/eng1-n1</property>
<value>1</value>
</equals>
</condition>
<command>nasal</command>
2020-10-13 19:50:22 +00:00
<script>libraries.pushbutton();</script>
2019-10-14 16:48:35 +00:00
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>Eng1N1Prot</object-name>
<action>
2020-09-24 19:18:09 +00:00
<button>0</button>
2019-10-14 16:48:35 +00:00
<repeatable>false</repeatable>
<binding>
2020-09-24 19:18:09 +00:00
<command>property-toggle</command>
2019-10-14 16:48:35 +00:00
<property>controls/OH/protectors/eng1-n1</property>
</binding>
2020-09-24 19:18:09 +00:00
<binding>
<condition>
<not>
<property>controls/OH/protectors/eng1-n1</property>
</not>
</condition>
<command>nasal</command>
<script>setprop("sim/sounde/oh-cover", 1);</script>
</binding>
2019-10-14 16:48:35 +00:00
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>Eng1N1Prot</object-name>
<property>controls/OH/protectors/eng1-n1</property>
<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>
<and>
<equals>
<property>controls/OH/protectors/eng2-n1</property>
<value>1</value>
</equals>
<or>
<greater-than-equals>
2020-08-14 18:34:48 +00:00
<property>systems/electrical/bus/dc-1</property>
2019-10-14 16:48:35 +00:00
<value>25</value>
</greater-than-equals>
<greater-than-equals>
2020-08-14 18:34:48 +00:00
<property>systems/electrical/bus/dc-2</property>
2019-10-14 16:48:35 +00:00
<value>25</value>
</greater-than-equals>
</or>
</and>
</condition>
<command>property-toggle</command>
<property>controls/fadec/n1mode2</property>
</binding>
2020-09-24 19:18:09 +00:00
<binding>
<command>property-assign</command>
<property>controls/OH/protectors/eng2-n1</property>
<value>0</value>
</binding>
2019-10-14 16:48:35 +00:00
<binding>
<condition>
<equals>
<property>controls/OH/protectors/eng2-n1</property>
<value>1</value>
</equals>
</condition>
<command>nasal</command>
2020-10-13 19:50:22 +00:00
<script>libraries.pushbutton();</script>
2019-10-14 16:48:35 +00:00
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>Eng2N1Prot</object-name>
<action>
2020-09-24 19:18:09 +00:00
<button>0</button>
2019-10-14 16:48:35 +00:00
<repeatable>false</repeatable>
<binding>
2020-09-24 19:18:09 +00:00
<command>property-toggle</command>
2019-10-14 16:48:35 +00:00
<property>controls/OH/protectors/eng2-n1</property>
</binding>
2020-09-24 19:18:09 +00:00
<binding>
<condition>
<not>
<property>controls/OH/protectors/eng2-n1</property>
</not>
</condition>
<command>nasal</command>
<script>setprop("sim/sounde/oh-cover", 1);</script>
</binding>
2019-10-14 16:48:35 +00:00
</action>
</animation>
<animation>
<type>rotate</type>
<object-name>Eng2N1Prot</object-name>
<property>controls/OH/protectors/eng2-n1</property>
<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>
<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>
</PropertyList>