A32X: Add togglable Steep Approach option

This commit is contained in:
Joshua Davidson 2017-06-22 21:47:43 -04:00
parent 05bceed78f
commit 744276c509
5 changed files with 297 additions and 0 deletions

View file

@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8" ?>
<PropertyList>
<path>res/SteepAppr.ac</path>
<!-- ANIMATIONS -->
<animation>
<type>select</type>
<object-name>SteepApprBtn2O</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>
<!-- Steep Approach -->
<animation>
<type>pick</type>
<object-name>SteepApprBtn1</object-name>
<object-name>SteepApprBtn2</object-name>
<object-name>SteepApprBtn2O</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<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>
<command>property-toggle</command>
<property>/options/steep-ils</property>
</binding>
<binding>
<command>nasal</command>
<script>setprop("/sim/sounde/oh-btn", 1);</script>
</binding>
</action>
</animation>
<animation>
<type>select</type>
<object-name>SteepApprBtn2O</object-name>
<condition>
<or>
<equals>
<property>/options/steep-ils</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>MarkingLtsA318</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>MarkingLtsA318</object-name>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
<factor-prop>controls/lighting/overhead-panel-norm</factor-prop>
</emission>
</animation>
</PropertyList>

View file

@ -0,0 +1,164 @@
AC3Db
MATERIAL "ac3dmat1" rgb 0.992157 0.992157 0.992157 amb 0.2 0.2 0.2 emis 1 1 1 spec 0 0 0 shi 128 trans 0
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 1 1 1 shi 128 trans 0
OBJECT world
kids 4
OBJECT poly
name "SteepApprBtn2O"
loc 0.0102001 -0.168758 -0.244878
data 8
Cube.063
texture "buttons2.png"
crease 30.000000
numvert 8
-0.00349075 -0.0464 -0.0536251
-0.00592814 -0.0464 -0.0337741
-0.00295051 -0.0464 -0.0334085
-0.00051312 -0.0464 -0.0532595
-0.00349075 -0.0564 -0.0536251
-0.00592814 -0.0564 -0.0337741
-0.00295051 -0.0564 -0.0334085
-0.00051312 -0.0564 -0.0532595
numsurf 4
SURF 0x0
mat 0
refs 4
3 0.5 0.75
7 0.5 0.5
4 0.5 0.5
0 0.5 0.75
SURF 0x0
mat 0
refs 4
6 0 0.5
2 9.31321e-008 0.75
1 9.31321e-008 0.75
5 0 0.5
SURF 0x0
mat 0
refs 4
7 0.5 0.5
3 0.5 0.75
2 9.31321e-008 0.75
6 0 0.5
SURF 0x0
mat 0
refs 4
7 0.5 0.5
6 0 0.5
5 0 0.5
4 0.5 0.5
kids 0
OBJECT poly
name "SteepApprBtn1"
loc 0.0152448 0.00304149 -0.286474
data 8
Cube.031
texture "buttons.png"
crease 30.000000
numvert 8
-0.00561947 -0.2182 -0.0116719
-0.00805682 -0.2182 0.00817901
-0.0110345 -0.2182 0.00781345
-0.0085971 -0.2182 -0.0120375
-0.00561947 -0.2082 -0.0116719
-0.00805682 -0.2082 0.00817901
-0.0110345 -0.2082 0.00781345
-0.0085971 -0.2082 -0.0120375
numsurf 4
SURF 0x0
mat 0
refs 4
4 0.5 1
7 0.5 1
6 9.31321e-008 1
5 9.31321e-008 1
SURF 0x0
mat 0
refs 4
0 0.5 0.75
4 0.5 1
5 9.31321e-008 1
1 0 0.75
SURF 0x0
mat 0
refs 4
1 0 0.75
5 9.31321e-008 1
6 9.31321e-008 1
2 0 0.75
SURF 0x0
mat 0
refs 4
4 0.5 1
0 0.5 0.75
3 0.5 0.75
7 0.5 1
kids 0
OBJECT poly
name "SteepApprBtn2"
loc 0.0152448 0.00304149 -0.286474
data 8
Cube.032
texture "buttons.png"
crease 30.000000
numvert 8
-0.0085971 -0.2182 -0.0120375
-0.0110345 -0.2182 0.00781345
-0.00805682 -0.2182 0.00817901
-0.00561947 -0.2182 -0.0116719
-0.0085971 -0.2282 -0.0120375
-0.0110345 -0.2282 0.00781345
-0.00805682 -0.2282 0.00817901
-0.00561947 -0.2282 -0.0116719
numsurf 4
SURF 0x0
mat 0
refs 4
3 0.5 0.75
7 0.5 0.5
4 0.5 0.5
0 0.5 0.75
SURF 0x0
mat 0
refs 4
6 0 0.5
2 9.31321e-008 0.75
1 9.31321e-008 0.75
5 0 0.5
SURF 0x0
mat 0
refs 4
7 0.5 0.5
3 0.5 0.75
2 9.31321e-008 0.75
6 0 0.5
SURF 0x0
mat 0
refs 4
7 0.5 0.5
6 0 0.5
5 0 0.5
4 0.5 0.5
kids 0
OBJECT poly
name "MarkingLts"
loc 0.00126776 -5.00064e-005 -5.00083e-005
data 9
Plane.007
texture "markingsSteepAppr.png"
crease 30.000000
numvert 4
0.00329813 -0.232617 -0.270463
0.00329813 -0.1956 -0.270463
0.00775683 -0.232617 -0.306132
0.00775683 -0.1956 -0.306132
numsurf 1
SURF 0x0
mat 1
refs 4
3 0.942185 0.199076
1 0.888916 0.199076
0 0.888916 0.142127
2 0.942185 0.142127
kids 0

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -12,4 +12,10 @@
</nose>
</model>
</sim>
<options>
<steep-ils type="bool">0</steep-ils>
<steep-ils-avail type="bool">0</steep-ils-avail>
</options>
</PropertyList>

View file

@ -12,4 +12,10 @@
</nose>
</model>
</sim>
<options>
<steep-ils type="bool">0</steep-ils>
<steep-ils-avail type="bool">0</steep-ils-avail>
</options>
</PropertyList>