VC: Sort the OH Fire animations

This commit is contained in:
Josh Davidson 2019-07-30 18:53:34 -04:00
parent b3b29207fa
commit 1861c18e42

View file

@ -6193,25 +6193,17 @@
<button>0</button> <button>0</button>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <command>nasal</command>
<equals> <script>
<property>controls/engines/engine[0]/fire-btn-cover</property> if (getprop("/controls/engines/engine[0]/fire-btn") == 1) {
<value>1</value> setprop("/controls/engines/engine[0]/fire-btn", 0);
</equals> setprop("/controls/engines/engine[0]/fire-btn-cover", 0);
</condition> } else if (getprop("/controls/engines/engine[0]/fire-btn-cover") == 1) {
<command>property-toggle</command> setprop("/controls/engines/engine[0]/fire-btn", 1);
<property>controls/engines/engine[0]/fire-btn</property> } else if (getprop("/devices/status/keyboard/shift") == 1) {
</binding> setprop("/controls/engines/engine[0]/fire-btn-cover", 1);
<binding> }
<condition> </script>
<equals>
<property>controls/engines/engine[0]/fire-btn</property>
<value>0</value>
</equals>
</condition>
<command>property-assign</command>
<property>controls/engines/engine[0]/fire-btn-cover</property>
<value>0</value>
</binding> </binding>
</action> </action>
</animation> </animation>
@ -6222,30 +6214,19 @@
<object-name>Eng1FireBtn</object-name> <object-name>Eng1FireBtn</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <command>nasal</command>
<property>devices/status/keyboard/shift</property> <script>
</condition> if (getprop("/controls/engines/engine[0]/fire-btn") == 1) {
<command>property-assign</command> setprop("/controls/engines/engine[0]/fire-btn", 0);
<property>controls/engines/engine[0]/fire-btn-cover</property> setprop("/controls/engines/engine[0]/fire-btn-cover", 0);
<value>1</value> } else if (getprop("/controls/engines/engine[0]/fire-btn-cover") == 1) {
</binding> setprop("/controls/engines/engine[0]/fire-btn-cover", 0);
<binding> } else if (getprop("/devices/status/keyboard/shift") == 1) {
<condition> setprop("/controls/engines/engine[0]/fire-btn-cover", 1);
<and> }
<not> </script>
<property>devices/status/keyboard/shift</property>
</not>
<equals>
<property>controls/engines/engine[0]/fire-btn</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/engines/engine[0]/fire-btn-cover</property>
<value>0</value>
</binding> </binding>
</action> </action>
</animation> </animation>
@ -6269,7 +6250,7 @@
<type>translate</type> <type>translate</type>
<object-name>Eng1FireBtn</object-name> <object-name>Eng1FireBtn</object-name>
<property>controls/engines/engine[0]/fire-btn</property> <property>controls/engines/engine[0]/fire-btn</property>
<factor>0.0025</factor> <factor>0.025</factor>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -6279,14 +6260,12 @@
<animation> <animation>
<type>material</type> <type>material</type>
<object-name>Eng1FireBtn</object-name> <object-name>firebtn1</object-name>
<condition>
<property>systems/fire/engine1/warning-active</property>
</condition>
<emission> <emission>
<red>1.0</red> <red>1.0</red>
<green>1.0</green> <green>1.0</green>
<blue>1.0</blue> <blue>1.0</blue>
<factor-prop>systems/fire/engine1/warning-active</factor-prop>
</emission> </emission>
</animation> </animation>
@ -6458,25 +6437,17 @@
<button>0</button> <button>0</button>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <command>nasal</command>
<equals> <script>
<property>controls/APU/fire-btn-cover</property> if (getprop("/controls/APU/fire-btn") == 1) {
<value>1</value> setprop("/controls/APU/fire-btn", 0);
</equals> setprop("/controls/APU/fire-btn-cover", 0);
</condition> } else if (getprop("/controls/APU/fire-btn-cover") == 1) {
<command>property-toggle</command> setprop("/controls/APU/fire-btn", 1);
<property>controls/APU/fire-btn</property> } else if (getprop("/devices/status/keyboard/shift") == 1) {
</binding> setprop("/controls/APU/fire-btn-cover", 1);
<binding> }
<condition> </script>
<equals>
<property>controls/APU/fire-btn</property>
<value>0</value>
</equals>
</condition>
<command>property-assign</command>
<property>controls/APU/fire-btn-cover</property>
<value>0</value>
</binding> </binding>
</action> </action>
</animation> </animation>
@ -6487,30 +6458,19 @@
<object-name>APUFireBtn</object-name> <object-name>APUFireBtn</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <command>nasal</command>
<property>devices/status/keyboard/shift</property> <script>
</condition> if (getprop("/controls/APU/fire-btn") == 1) {
<command>property-assign</command> setprop("/controls/APU/fire-btn", 0);
<property>controls/APU/fire-btn-cover</property> setprop("/controls/APU/fire-btn-cover", 0);
<value>1</value> } else if (getprop("/controls/APU/fire-btn-cover") == 1) {
</binding> setprop("/controls/APU/fire-btn-cover", 0);
<binding> } else if (getprop("/devices/status/keyboard/shift") == 1) {
<condition> setprop("/controls/APU/fire-btn-cover", 1);
<and> }
<not> </script>
<property>devices/status/keyboard/shift</property>
</not>
<equals>
<property>controls/APU/fire-btn</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/APU/fire-btn-cover</property>
<value>0</value>
</binding> </binding>
</action> </action>
</animation> </animation>
@ -6534,7 +6494,7 @@
<type>translate</type> <type>translate</type>
<object-name>APUFireBtn</object-name> <object-name>APUFireBtn</object-name>
<property>controls/APU/fire-btn</property> <property>controls/APU/fire-btn</property>
<factor>0.0025</factor> <factor>0.025</factor>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -6544,14 +6504,12 @@
<animation> <animation>
<type>material</type> <type>material</type>
<object-name>APUFireBtn</object-name> <object-name>firebtnapu</object-name>
<condition>
<property>systems/fire/apu/warning-active</property>
</condition>
<emission> <emission>
<red>1.0</red> <red>1.0</red>
<green>1.0</green> <green>1.0</green>
<blue>1.0</blue> <blue>1.0</blue>
<factor-prop>systems/fire/apu/warning-active</factor-prop>
</emission> </emission>
</animation> </animation>
@ -6621,25 +6579,17 @@
<button>0</button> <button>0</button>
<repeatable>false</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <command>nasal</command>
<equals> <script>
<property>controls/engines/engine[1]/fire-btn-cover</property> if (getprop("/controls/engines/engine[1]/fire-btn") == 1) {
<value>1</value> setprop("/controls/engines/engine[1]/fire-btn", 0);
</equals> setprop("/controls/engines/engine[1]/fire-btn-cover", 0);
</condition> } else if (getprop("/controls/engines/engine[1]/fire-btn-cover") == 1) {
<command>property-toggle</command> setprop("/controls/engines/engine[1]/fire-btn", 1);
<property>controls/engines/engine[1]/fire-btn</property> } else if (getprop("/devices/status/keyboard/shift") == 1) {
</binding> setprop("/controls/engines/engine[1]/fire-btn-cover", 1);
<binding> }
<condition> </script>
<equals>
<property>controls/engines/engine[1]/fire-btn</property>
<value>0</value>
</equals>
</condition>
<command>property-assign</command>
<property>controls/engines/engine[1]/fire-btn-cover</property>
<value>0</value>
</binding> </binding>
</action> </action>
</animation> </animation>
@ -6650,30 +6600,19 @@
<object-name>Eng2FireBtn</object-name> <object-name>Eng2FireBtn</object-name>
<action> <action>
<button>0</button> <button>0</button>
<repeatable>true</repeatable> <repeatable>false</repeatable>
<binding> <binding>
<condition> <command>nasal</command>
<property>devices/status/keyboard/shift</property> <script>
</condition> if (getprop("/controls/engines/engine[1]/fire-btn") == 1) {
<command>property-assign</command> setprop("/controls/engines/engine[1]/fire-btn", 0);
<property>controls/engines/engine[1]/fire-btn-cover</property> setprop("/controls/engines/engine[1]/fire-btn-cover", 0);
<value>1</value> } else if (getprop("/controls/engines/engine[1]/fire-btn-cover") == 1) {
</binding> setprop("/controls/engines/engine[1]/fire-btn-cover", 0);
<binding> } else if (getprop("/devices/status/keyboard/shift") == 1) {
<condition> setprop("/controls/engines/engine[1]/fire-btn-cover", 1);
<and> }
<not> </script>
<property>devices/status/keyboard/shift</property>
</not>
<equals>
<property>controls/engines/engine[1]/fire-btn</property>
<value>0</value>
</equals>
</and>
</condition>
<command>property-assign</command>
<property>controls/engines/engine[1]/fire-btn-cover</property>
<value>0</value>
</binding> </binding>
</action> </action>
</animation> </animation>
@ -6697,7 +6636,7 @@
<type>translate</type> <type>translate</type>
<object-name>Eng2FireBtn</object-name> <object-name>Eng2FireBtn</object-name>
<property>controls/engines/engine[1]/fire-btn</property> <property>controls/engines/engine[1]/fire-btn</property>
<factor>0.0025</factor> <factor>0.025</factor>
<axis> <axis>
<x>1</x> <x>1</x>
<y>0</y> <y>0</y>
@ -6707,14 +6646,12 @@
<animation> <animation>
<type>material</type> <type>material</type>
<object-name>Eng2FireBtn</object-name> <object-name>firebtn2</object-name>
<condition>
<property>systems/fire/engine2/warning-active</property>
</condition>
<emission> <emission>
<red>1.0</red> <red>1.0</red>
<green>1.0</green> <green>1.0</green>
<blue>1.0</blue> <blue>1.0</blue>
<factor-prop>systems/fire/engine2/warning-active</factor-prop>
</emission> </emission>
</animation> </animation>