From ef9829248ea6937b1930c89300d3d74a07541ea6 Mon Sep 17 00:00:00 2001 From: Joshua Davidson <joshuadavidson2000@gmail.com> Date: Sun, 10 Sep 2017 15:51:14 -0400 Subject: [PATCH] A3XX: OH work --- Models/Instruments/OHpanel/OHpanel.xml | 59 +++++++++++++++++++++++++- Nasal/buttons.nas | 1 + 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/Models/Instruments/OHpanel/OHpanel.xml b/Models/Instruments/OHpanel/OHpanel.xml index 2fc5cf31..31cff638 100644 --- a/Models/Instruments/OHpanel/OHpanel.xml +++ b/Models/Instruments/OHpanel/OHpanel.xml @@ -205,7 +205,6 @@ <object-name>EmerCallBtn1C</object-name> <object-name>EmerCallBtn2O</object-name> <object-name>EmerElecManOnBtn2O</object-name> - <object-name>EmerExtLtBtn2O</object-name> <object-name>EmerGenInd1F</object-name> <object-name>Eng1FireAgt1Btn1S</object-name> <object-name>Eng1FireAgt1Btn2D</object-name> @@ -5586,6 +5585,64 @@ </center> </animation> + <animation> + <name>Emer Lights pick</name> + <type>pick</type> + <object-name>EmerExtLtSwtch</object-name> + <action> + <button>0</button> + <repeatable>false</repeatable> + <binding> + <command>property-cycle</command> + <property>controls/switches/emer-lights</property> + <value>0.0</value> + <value>0.5</value> + <value>1.0</value> + </binding> + <binding> + <command>nasal</command> + <script>setprop("/sim/sounde/switch1", 1);</script> + </binding> + </action> + </animation> + <animation> + <name>Emer Lights rotate</name> + <type>rotate</type> + <object-name>EmerExtLtSwtch</object-name> + <property>controls/switches/emer-lights</property> + <interpolation> + <entry><ind>0</ind><dep>35</dep></entry> + <entry><ind>1</ind><dep>-35</dep></entry> + </interpolation> + <axis> + <x>0</x> + <y>1</y> + <z>0</z> + </axis> + <center> + <x-m>-0.01</x-m> + <y-m>0</y-m> + <z-m>-0.3037</z-m> + </center> + </animation> + + <animation> + <type>select</type> + <object-name>EmerExtLtBtn2O</object-name> + <condition> + <or> + <equals> + <property>controls/switches/emer-lights</property> + <value>0</value> + </equals> + <equals> + <property>controls/switches/annun-test</property> + <value>1</value> + </equals> + </or> + </condition> + </animation> + <!-- Texts --> <text> <name>Battery-volt</name> diff --git a/Nasal/buttons.nas b/Nasal/buttons.nas index bdd09dc5..8ea6f0b3 100644 --- a/Nasal/buttons.nas +++ b/Nasal/buttons.nas @@ -19,6 +19,7 @@ var variousReset = func { setprop("/instrumentation/mk-viii/inputs/discretes/momentary-flap3-override", 0); setprop("/controls/switches/cabinCall", 0); setprop("/controls/switches/mechCall", 0); + setprop("/controls/switches/emer-lights", 0.5); # cockpit voice recorder stuff setprop("/controls/CVR/power", 0); setprop("/controls/CVR/test", 0);