Update MCDU code, make CLR button work correctly, fixed and updated MCDU INIT Page, New Thales MCDU Texture and 3D Model

This commit is contained in:
Joshua Davidson 2017-05-15 18:38:20 -04:00
parent 3a9e9a2390
commit ce6f0a456b
26 changed files with 12706 additions and 11154 deletions

View file

@ -334,7 +334,7 @@
<egt type="float">0</egt>
</apu>
<FMGC>
<FMGC n="0">
<status>
<to-state type="bool">1</to-state>
</status>

View file

@ -18,6 +18,146 @@ MATERIAL "GlassCockpit" rgb 0.8 0.8 0.8 amb 0.5 0.5 0.5 emis 1 1 1 spec 1 1 1
OBJECT world
kids 363
OBJECT poly
name "eng"
loc -0.0195365 0.00628152 0.0146721
texture "ped_xtra.png"
crease 45.000000
numvert 12
-0.417964 -0.320412 0.0269503
-0.417964 -0.320412 0.0133959
-0.407855 -0.32256 0.0133959
-0.407855 -0.32256 0.0269503
-0.416689 -0.314409 0.0269503
-0.415684 -0.313569 0.0261933
-0.407155 -0.315381 0.0261933
-0.406579 -0.316557 0.0269503
-0.416689 -0.314409 0.0133959
-0.407155 -0.315381 0.0141528
-0.415684 -0.313569 0.0141528
-0.406579 -0.316557 0.0133959
numsurf 20
SURF 0x30
mat 13
refs 3
3 0.48179 0.337211
1 0.575839 0.402015
2 0.575839 0.337211
SURF 0x30
mat 13
refs 3
1 0.575839 0.402015
3 0.48179 0.337211
0 0.48179 0.402015
SURF 0x30
mat 13
refs 3
3 0.48179 0.337211
4 0.48179 0.393838
0 0.48179 0.402015
SURF 0x30
mat 13
refs 3
4 0.48179 0.393838
3 0.48179 0.337211
7 0.48179 0.329035
SURF 0x30
mat 13
refs 3
8 0.575839 0.393838
2 0.575839 0.337211
1 0.575839 0.402015
SURF 0x30
mat 13
refs 3
2 0.575839 0.337211
8 0.575839 0.393838
11 0.575839 0.329035
SURF 0x30
mat 13
refs 3
4 0.48179 0.393838
1 0.575839 0.402015
0 0.48179 0.402015
SURF 0x30
mat 13
refs 3
1 0.575839 0.402015
4 0.48179 0.393838
8 0.575839 0.393838
SURF 0x30
mat 13
refs 3
11 0.575839 0.329035
3 0.48179 0.337211
2 0.575839 0.337211
SURF 0x30
mat 13
refs 3
3 0.48179 0.337211
11 0.575839 0.329035
7 0.48179 0.329035
SURF 0x30
mat 13
refs 3
5 0.487042 0.387399
9 0.570586 0.332727
10 0.570586 0.387399
SURF 0x30
mat 13
refs 3
9 0.570586 0.332727
5 0.487042 0.387399
6 0.487042 0.332727
SURF 0x30
mat 13
refs 3
4 0.48179 0.393838
10 0.570586 0.387399
8 0.575839 0.393838
SURF 0x30
mat 13
refs 3
10 0.570586 0.387399
4 0.48179 0.393838
5 0.487042 0.387399
SURF 0x30
mat 13
refs 3
7 0.48179 0.329035
5 0.487042 0.387399
4 0.48179 0.393838
SURF 0x30
mat 13
refs 3
5 0.487042 0.387399
7 0.48179 0.329035
6 0.487042 0.332727
SURF 0x30
mat 13
refs 3
11 0.575839 0.329035
9 0.570586 0.332727
7 0.48179 0.329035
SURF 0x30
mat 13
refs 3
7 0.48179 0.329035
9 0.570586 0.332727
6 0.487042 0.332727
SURF 0x30
mat 13
refs 3
10 0.570586 0.387399
11 0.575839 0.329035
8 0.575839 0.393838
SURF 0x30
mat 13
refs 3
11 0.575839 0.329035
10 0.570586 0.387399
9 0.570586 0.332727
kids 0
OBJECT poly
name "trk-fpa"
loc -8.40336e-009 0 -3.23064e-013
texture "glare_sw.png"
@ -67372,148 +67512,8 @@ refs 3
6 0.553595 0.232648
kids 0
OBJECT poly
name "eng"
loc -0.0059102 0.00338554 0.0146721
texture "ped_xtra.png"
crease 45.000000
numvert 12
-0.406579 -0.316557 0.0133959
-0.415684 -0.313569 0.0141528
-0.407155 -0.315381 0.0141528
-0.416689 -0.314409 0.0133959
-0.406579 -0.316557 0.0269503
-0.407155 -0.315381 0.0261933
-0.415684 -0.313569 0.0261933
-0.416689 -0.314409 0.0269503
-0.407855 -0.32256 0.0269503
-0.407855 -0.32256 0.0133959
-0.417964 -0.320412 0.0133959
-0.417964 -0.320412 0.0269503
numsurf 20
SURF 0x30
mat 13
refs 3
0 0.575839 0.329035
1 0.570586 0.387399
2 0.570586 0.332727
SURF 0x30
mat 13
refs 3
1 0.570586 0.387399
0 0.575839 0.329035
3 0.575839 0.393838
SURF 0x30
mat 13
refs 3
4 0.48179 0.329035
2 0.570586 0.332727
5 0.487042 0.332727
SURF 0x30
mat 13
refs 3
0 0.575839 0.329035
2 0.570586 0.332727
4 0.48179 0.329035
SURF 0x30
mat 13
refs 3
6 0.487042 0.387399
4 0.48179 0.329035
5 0.487042 0.332727
SURF 0x30
mat 13
refs 3
4 0.48179 0.329035
6 0.487042 0.387399
7 0.48179 0.393838
SURF 0x30
mat 13
refs 3
1 0.570586 0.387399
7 0.48179 0.393838
6 0.487042 0.387399
SURF 0x30
mat 13
refs 3
7 0.48179 0.393838
1 0.570586 0.387399
3 0.575839 0.393838
SURF 0x30
mat 13
refs 3
2 0.570586 0.332727
6 0.487042 0.387399
5 0.487042 0.332727
SURF 0x30
mat 13
refs 3
6 0.487042 0.387399
2 0.570586 0.332727
1 0.570586 0.387399
SURF 0x30
mat 13
refs 3
8 0.48179 0.337211
0 0.575839 0.329035
4 0.48179 0.329035
SURF 0x30
mat 13
refs 3
0 0.575839 0.329035
8 0.48179 0.337211
9 0.575839 0.337211
SURF 0x30
mat 13
refs 3
10 0.575839 0.402015
7 0.48179 0.393838
3 0.575839 0.393838
SURF 0x30
mat 13
refs 3
7 0.48179 0.393838
10 0.575839 0.402015
11 0.48179 0.402015
SURF 0x30
mat 13
refs 3
9 0.575839 0.337211
3 0.575839 0.393838
0 0.575839 0.329035
SURF 0x30
mat 13
refs 3
3 0.575839 0.393838
9 0.575839 0.337211
10 0.575839 0.402015
SURF 0x30
mat 13
refs 3
7 0.48179 0.393838
8 0.48179 0.337211
4 0.48179 0.329035
SURF 0x30
mat 13
refs 3
8 0.48179 0.337211
7 0.48179 0.393838
11 0.48179 0.402015
SURF 0x30
mat 13
refs 3
10 0.575839 0.402015
8 0.48179 0.337211
11 0.48179 0.402015
SURF 0x30
mat 13
refs 3
8 0.48179 0.337211
10 0.575839 0.402015
9 0.575839 0.337211
kids 0
OBJECT poly
name "apu"
loc -0.0059102 0.00338554 0.0146721
loc 0.00771551 0.000489499 0.0146721
texture "ped_xtra.png"
crease 45.000000
numvert 12

View file

@ -10,12 +10,25 @@
<path>EMPTY.ac</path>
<model>
<name>INITBOX</name>
<path>INITBOX.xml</path>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
<heading-deg>-180</heading-deg>
<roll-deg>-180</roll-deg>
<pitch-deg>-90</pitch-deg>
</offsets>
</model>
<text>
<name>page</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.004</y-m>
<z-m>0.08</z-m>
<y-m>0.0</y-m>
<z-m>0.083</z-m>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -39,7 +52,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.042</y-m>
<z-m>0.0745</z-m>
<z-m>0.0755</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -57,12 +70,13 @@
<height type="int">64</height>
</font-resolution>
</text>
<text>
<name>fromto</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.035</y-m>
<z-m>0.0745</z-m>
<y-m>0.032</y-m>
<z-m>0.0755</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -80,12 +94,13 @@
<height type="int">64</height>
</font-resolution>
</text>
<!--<text>
<name>fromto2</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0705</z-m>
<y-m>0.035</y-m>
<z-m>0.0715</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -109,7 +124,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0655</z-m>
<z-m>0.065</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -132,7 +147,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0615</z-m>
<z-m>0.0605</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -156,7 +171,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0650</z-m>
<z-m>0.065</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -179,7 +194,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0600</z-m>
<z-m>0.061</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -226,7 +241,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.0419</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -249,12 +264,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.044</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">></format>
<format type="string">&gt;</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -296,7 +311,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0565</z-m>
<z-m>0.0545</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -315,11 +330,11 @@
</font-resolution>
</text>
<!--<text>
<name>seconddata2</name>
<name>fltnmbr2</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.035</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -343,7 +358,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0380</z-m>
<z-m>0.033</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -366,7 +381,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0340</z-m>
<z-m>0.029</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -390,7 +405,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.033</z-m>
<z-m>0.029</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -413,12 +428,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.033</z-m>
<z-m>0.029</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">></format>
<format type="string">&gt;</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -460,12 +475,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0290</z-m>
<z-m>0.0230</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">CRZ FL/TEMP</format>
<format type="string">CRZ FL/TEMP.</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -478,19 +493,19 @@
<height type="int">64</height>
</font-resolution>
</text>
<!--<text>
<name>idleperf2</name>
<text>
<name>crzfltemp2</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0255</z-m>
<y-m>-0.045</y-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">+0.0/+0.0</format>
<format type="string">----- /---</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<font type="string">BoeingCDU-Small.ttf</font>
<property>autopilot/serviceable</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
@ -500,13 +515,14 @@
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>-->
</text>
<text>
<name>LONG</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.0405</y-m>
<z-m>0.0466</z-m>
<z-m>0.0435</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -529,12 +545,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.0425</z-m>
<z-m>0.0395</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<property type="string">position/longitude-string</property>
<format type="string">N/A</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -551,8 +567,8 @@
<name>tropo</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.039</y-m>
<z-m>0.0279</z-m>
<y-m>0.041</y-m>
<z-m>0.0230</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -575,7 +591,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.0237</z-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -594,30 +610,6 @@
</font-resolution>
</text>
<text>
<name>scratchpad</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.046</y-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>/MCDU[0]/scratchpad</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>
<!-- Colors -->
<!-- White -->
<animation>
@ -636,7 +628,6 @@
<object-name>wind</object-name>
<object-name>wind2</object-name>
<object-name>LONG</object-name>
<object-name>scratchpad</object-name>
<diffuse>
<red>1</red>
<green>1</green>
@ -668,6 +659,7 @@
<object-name>init</object-name>
<object-name>requeststar</object-name>
<object-name>request</object-name>
<object-name>fromtobox</object-name>
<diffuse>
<red>1</red>
<green>0.3</green>
@ -685,7 +677,7 @@
</specular>
<emission>
<red>1</red>
<green>0.40</green>
<green>0.3</green>
<blue>0</blue>
</emission>
</animation>

View file

@ -0,0 +1,276 @@
AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0 0 0 shi 128 trans 0
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 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 0 trans 0
OBJECT world
kids 5
OBJECT poly
name "fromto"
loc -0.0691401 -0.000598909 -0.016447
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
-0.00472546 -4.13274e-009 -0.0290224
-0.00472546 -4.13274e-009 0.00170836
-0.000334941 0 0.00170836
-0.000334948 0 -0.0290224
numsurf 1
SURF 0x0
mat 1
refs 4
3 0.900124 0.496296
0 0.900124 0.691819
1 0.476034 0.691819
2 0.476034 0.496296
kids 0
OBJECT poly
name "box"
loc 0.00822081 -0.0901982 0
texture "bg.jpg"
crease 45.000000
numvert 32
-0.0955113 0.0766067 0.0464514
-0.0955114 0.0766082 -0.0444134
-0.0955114 0.0766082 -0.0447677
-0.0955114 0.0766082 -0.0454758
-0.0955113 0.0766067 0.0468931
-0.0955113 0.0766067 0.0468114
-0.0955114 0.0766082 -0.0457814
-0.0167362 0.0766096 -0.0452061
-0.0173247 0.0766096 -0.045761
-0.0167736 0.0766082 0.0471958
-0.0165575 0.0766082 0.046439
-0.0181283 0.0766096 -0.0444482
-0.0181703 0.0766082 0.046439
-0.0948978 0.0766082 -0.0444134
-0.0948642 0.0766067 0.0464514
-0.0948978 0.0766082 -0.0457814
-0.0181283 0.0766096 -0.0457814
-0.0173122 0.0766312 -0.0457814
-0.0174052 0.0766096 -0.0457814
-0.0951288 0.0766067 0.0468931
-0.0948642 0.0766067 0.0468931
-0.0166872 0.0766082 0.0468931
-0.0173323 0.0766082 0.0468931
-0.0181703 0.0766082 0.0468931
-0.0178909 0.0766082 0.0468931
-0.0165618 0.0766082 0.046439
-0.0165618 0.0766096 -0.0445924
-0.0165618 0.0767837 -0.0453011
-0.0165618 0.0766082 0.046454
-0.016831 0.076744 -0.0457814
-0.0165618 0.0766096 -0.0444482
-0.0165618 0.0768194 0.047311
numsurf 22
SURF 0x10
mat 0
refs 4
28 0.130849 0.575937
21 0.127384 0.576512
9 0.124996 0.576908
31 0.124087 0.575937
SURF 0x10
mat 0
refs 5
29 0.858692 0.575937
17 0.858692 0.579377
8 0.858531 0.579434
7 0.854152 0.576736
27 0.854902 0.575937
SURF 0x10
mat 0
refs 4
26 0.849307 0.575937
7 0.854152 0.576736
11 0.848169 0.583119
30 0.848169 0.575937
SURF 0x10
mat 0
refs 3
27 0.854902 0.575937
7 0.854152 0.576736
26 0.849307 0.575937
SURF 0x10
mat 0
refs 4
30 0.848169 0.575937
11 0.848169 0.583119
12 0.130967 0.583312
25 0.130967 0.575937
SURF 0x10
mat 0
refs 5
25 0.130967 0.575937
12 0.130967 0.583312
22 0.127384 0.579469
21 0.127384 0.576512
28 0.130849 0.575937
SURF 0x10
mat 0
refs 3
28 0.130849 0.575937
10 0.130967 0.575917
25 0.130967 0.575937
SURF 0x10
mat 0
refs 3
24 0.127383 0.582031
12 0.130967 0.583312
23 0.127383 0.583312
SURF 0x10
mat 0
refs 3
22 0.127384 0.579469
12 0.130967 0.583312
24 0.127383 0.582031
SURF 0x10
mat 0
refs 4
23 0.127383 0.583312
12 0.130967 0.583312
14 0.130868 0.934955
20 0.127383 0.934955
SURF 0x10
mat 0
refs 3
20 0.127383 0.934955
14 0.130868 0.934955
19 0.127382 0.936169
SURF 0x10
mat 0
refs 3
18 0.858692 0.579803
8 0.858531 0.579434
17 0.858692 0.579377
SURF 0x10
mat 0
refs 4
16 0.85869 0.583119
11 0.848169 0.583119
8 0.858531 0.579434
18 0.858692 0.579803
SURF 0x10
mat 0
refs 4
15 0.858691 0.93511
13 0.847897 0.93511
11 0.848169 0.583119
16 0.85869 0.583119
SURF 0x10
mat 0
refs 3
7 0.854152 0.576736
8 0.858531 0.579434
11 0.848169 0.583119
SURF 0x10
mat 0
refs 4
12 0.130967 0.583312
11 0.848169 0.583119
13 0.847897 0.93511
14 0.130868 0.934955
SURF 0x10
mat 0
refs 4
3 0.85628 0.937922
13 0.847897 0.93511
15 0.858691 0.93511
6 0.858691 0.937922
SURF 0x10
mat 0
refs 4
4 0.127383 0.937922
19 0.127382 0.936169
14 0.130868 0.934955
5 0.128028 0.937922
SURF 0x10
mat 0
refs 3
5 0.128028 0.937922
14 0.130868 0.934955
0 0.130868 0.937923
SURF 0x10
mat 0
refs 3
2 0.850692 0.937923
13 0.847897 0.93511
3 0.85628 0.937922
SURF 0x10
mat 0
refs 3
1 0.847897 0.937924
13 0.847897 0.93511
2 0.850692 0.937923
SURF 0x10
mat 0
refs 4
0 0.130868 0.937923
14 0.130868 0.934955
13 0.847897 0.93511
1 0.847897 0.937924
kids 0
OBJECT poly
name "coroute"
loc -0.0690906 -0.00060165 0.00956676
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
-0.000208564 -2.91038e-010 0.00385576
-0.00491899 -5.41331e-009 0.00385576
-0.00491899 -5.41331e-009 0.0358682
-0.000208564 -2.91038e-010 0.0358682
numsurf 1
SURF 0x0
mat 2
refs 4
3 0.00547499 0.490563
0 0.446491 0.490563
1 0.446491 0.697977
2 0.00547499 0.697977
kids 0
OBJECT poly
name "face"
loc -0.0925569 -0.0235122 0.00196775
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
-0.000122987 0 0.028218
0.00643683 1.49012e-008 0.028218
0.00643683 1.49012e-008 -0.00762965
-0.000122987 0 -0.00762965
numsurf 1
SURF 0x0
mat 2
refs 4
3 0.634683 0.490563
0 4.45843e-005 0.490563
1 4.45843e-005 0.000756443
2 0.634683 0.000756443
kids 0
OBJECT poly
name "fltnum"
loc -0.055732 -0.00059823 0.0550418
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
0.00300431 4.88944e-009 -0.0098099
0.00300431 4.88944e-009 -0.0353372
0.0072827 1.234e-008 -0.0353372
0.0072827 1.234e-008 -0.0098099
numsurf 1
SURF 0x0
mat 2
refs 4
0 0.634683 0.346666
3 0.634683 0.15482
2 0.986171 0.15482
1 0.986171 0.346666
kids 0

View file

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!--
##################################################################
# A3XX mCDU by Joshua Davidson (it0uchpods) and Jonathan Redpath #
##################################################################
-->
<PropertyList>
<path>INITBOX.ac</path>
</PropertyList>

File diff suppressed because it is too large Load diff

View file

@ -10,9 +10,25 @@
<path>MCDU.ac</path>
<model>
<name>SCRATCHPAD</name>
<path>SCRATCHPAD.xml</path>
<offsets>
<heading-deg>180</heading-deg>
<roll-deg>180</roll-deg>
<pitch-deg>90</pitch-deg>
</offsets>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</model>
<model>
<name>STATUS</name>
<path>STATUS1.xml</path>
<path>STATUS.xml</path>
<offsets>
<heading-deg>180</heading-deg>
<roll-deg>180</roll-deg>
@ -24,10 +40,6 @@
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>/MCDU[0]/page</property>
<value>STATUS</value>
@ -38,7 +50,7 @@
<model>
<name>INITA</name>
<path>INITA1.xml</path>
<path>INITA.xml</path>
<offsets>
<heading-deg>180</heading-deg>
<roll-deg>180</roll-deg>
@ -50,10 +62,6 @@
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>/MCDU[0]/page</property>
<value>INITA</value>
@ -62,6 +70,25 @@
</condition>
</model>
<animation>
<type>pick</type>
<object-name>init</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>mcdu1.pagebutton("init");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>a</object-name>
@ -72,16 +99,10 @@
<command>nasal</command>
<script>mcdu1.button("A");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -96,16 +117,10 @@
<command>nasal</command>
<script>mcdu1.button("B");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -120,16 +135,10 @@
<command>nasal</command>
<script>mcdu1.button("C");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -144,16 +153,10 @@
<command>nasal</command>
<script>mcdu1.button("D");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -168,16 +171,10 @@
<command>nasal</command>
<script>mcdu1.button("E");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -192,16 +189,10 @@
<command>nasal</command>
<script>mcdu1.button("F");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -216,16 +207,10 @@
<command>nasal</command>
<script>mcdu1.button("G");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -240,16 +225,10 @@
<command>nasal</command>
<script>mcdu1.button("H");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -264,16 +243,10 @@
<command>nasal</command>
<script>mcdu1.button("I");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -288,16 +261,10 @@
<command>nasal</command>
<script>mcdu1.button("J");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -312,16 +279,10 @@
<command>nasal</command>
<script>mcdu1.button("K");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -336,16 +297,10 @@
<command>nasal</command>
<script>mcdu1.button("L");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -360,16 +315,10 @@
<command>nasal</command>
<script>mcdu1.button("M");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -384,16 +333,10 @@
<command>nasal</command>
<script>mcdu1.button("N");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -408,16 +351,10 @@
<command>nasal</command>
<script>mcdu1.button("O");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -432,16 +369,10 @@
<command>nasal</command>
<script>mcdu1.button("P");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -456,16 +387,10 @@
<command>nasal</command>
<script>mcdu1.button("Q");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -480,16 +405,10 @@
<command>nasal</command>
<script>mcdu1.button("R");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -504,16 +423,10 @@
<command>nasal</command>
<script>mcdu1.button("S");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -528,16 +441,10 @@
<command>nasal</command>
<script>mcdu1.button("T");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -552,16 +459,10 @@
<command>nasal</command>
<script>mcdu1.button("U");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -576,16 +477,10 @@
<command>nasal</command>
<script>mcdu1.button("V");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -600,16 +495,10 @@
<command>nasal</command>
<script>mcdu1.button("W");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -624,16 +513,10 @@
<command>nasal</command>
<script>mcdu1.button("X");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -648,16 +531,10 @@
<command>nasal</command>
<script>mcdu1.button("Y");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -672,16 +549,10 @@
<command>nasal</command>
<script>mcdu1.button("Z");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -696,16 +567,10 @@
<command>nasal</command>
<script>mcdu1.button("SLASH");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -720,16 +585,10 @@
<command>nasal</command>
<script>mcdu1.button("SP");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -744,16 +603,10 @@
<command>nasal</command>
<script>mcdu1.button("OVFY");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -768,16 +621,10 @@
<command>nasal</command>
<script>mcdu1.button("CLR");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -792,16 +639,10 @@
<command>nasal</command>
<script>mcdu1.button("0");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -816,16 +657,10 @@
<command>nasal</command>
<script>mcdu1.button("1");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -840,16 +675,10 @@
<command>nasal</command>
<script>mcdu1.button("2");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -864,16 +693,10 @@
<command>nasal</command>
<script>mcdu1.button("3");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -888,16 +711,10 @@
<command>nasal</command>
<script>mcdu1.button("4");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -912,16 +729,10 @@
<command>nasal</command>
<script>mcdu1.button("5");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -936,16 +747,10 @@
<command>nasal</command>
<script>mcdu1.button("6");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -960,16 +765,10 @@
<command>nasal</command>
<script>mcdu1.button("7");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -984,16 +783,10 @@
<command>nasal</command>
<script>mcdu1.button("8");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -1008,16 +801,10 @@
<command>nasal</command>
<script>mcdu1.button("9");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -1032,16 +819,10 @@
<command>nasal</command>
<script>mcdu1.button("DOT");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -1056,16 +837,10 @@
<command>nasal</command>
<script>mcdu1.button("PLUSMINUS");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>

View file

@ -0,0 +1,64 @@
<?xml version="1.0"?>
<!--
##################################################################
# A3XX mCDU by Joshua Davidson (it0uchpods) and Jonathan Redpath #
##################################################################
-->
<PropertyList>
<path>EMPTY.ac</path>
<text>
<name>scratchpad</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.044</y-m>
<z-m>0.0120</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>/MCDU[0]/scratchpad</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>
<!-- Colors -->
<!-- White -->
<animation>
<type>material</type>
<object-name>scratchpad</object-name>
<diffuse>
<red>1</red>
<green>1</green>
<blue>1</blue>
</diffuse>
<ambient>
<red>0</red>
<green>0</green>
<blue>0</blue>
</ambient>
<specular>
<red>0</red>
<green>0</green>
<blue>0</blue>
</specular>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
</emission>
</animation>
</PropertyList>

View file

@ -15,7 +15,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.004</y-m>
<z-m>0.08</z-m>
<z-m>0.083</z-m>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -39,7 +39,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0745</z-m>
<z-m>0.0755</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -62,7 +62,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0705</z-m>
<z-m>0.0715</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -86,7 +86,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0655</z-m>
<z-m>0.065</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -109,7 +109,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0615</z-m>
<z-m>0.061</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -132,7 +132,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0615</z-m>
<z-m>0.061</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -156,7 +156,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0565</z-m>
<z-m>0.0545</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -179,7 +179,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -203,7 +203,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0385</z-m>
<z-m>0.033</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -226,7 +226,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0340</z-m>
<z-m>0.0285</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -250,7 +250,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0295</z-m>
<z-m>0.0225</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -273,7 +273,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0255</z-m>
<z-m>0.0185</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -297,7 +297,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0295</z-m>
<z-m>0.0225</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -320,7 +320,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.0255</z-m>
<z-m>0.0185</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -339,30 +339,6 @@
</font-resolution>
</text>
<text>
<name>scratchpad</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.046</y-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>/MCDU[0]/scratchpad</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>
<!-- Colors -->
<!-- White -->
<animation>
@ -375,7 +351,6 @@
<object-name>idleperf</object-name>
<object-name>software</object-name>
<object-name>statusxload</object-name>
<object-name>scratchpad</object-name>
<diffuse>
<red>1</red>
<green>1</green>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

View file

@ -10,12 +10,25 @@
<path>EMPTY.ac</path>
<model>
<name>INITBOX</name>
<path>INITBOX.xml</path>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
<heading-deg>-180</heading-deg>
<roll-deg>-180</roll-deg>
<pitch-deg>-90</pitch-deg>
</offsets>
</model>
<text>
<name>page</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.004</y-m>
<z-m>0.08</z-m>
<y-m>0.0</y-m>
<z-m>0.083</z-m>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -39,7 +52,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.042</y-m>
<z-m>0.0745</z-m>
<z-m>0.0755</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -57,12 +70,13 @@
<height type="int">64</height>
</font-resolution>
</text>
<text>
<name>fromto</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.035</y-m>
<z-m>0.0745</z-m>
<y-m>0.032</y-m>
<z-m>0.0755</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -80,12 +94,13 @@
<height type="int">64</height>
</font-resolution>
</text>
<!--<text>
<name>fromto2</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0705</z-m>
<y-m>0.035</y-m>
<z-m>0.0715</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -109,7 +124,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0655</z-m>
<z-m>0.065</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -132,7 +147,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0615</z-m>
<z-m>0.0605</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -156,7 +171,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0650</z-m>
<z-m>0.065</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -179,7 +194,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0600</z-m>
<z-m>0.061</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -226,7 +241,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.0419</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -249,12 +264,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.044</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">></format>
<format type="string">&gt;</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -296,7 +311,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0565</z-m>
<z-m>0.0545</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -315,11 +330,11 @@
</font-resolution>
</text>
<!--<text>
<name>seconddata2</name>
<name>fltnmbr2</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.035</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -343,7 +358,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0380</z-m>
<z-m>0.033</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -366,7 +381,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0340</z-m>
<z-m>0.029</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -390,7 +405,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.033</z-m>
<z-m>0.029</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -413,12 +428,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.033</z-m>
<z-m>0.029</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">></format>
<format type="string">&gt;</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -460,12 +475,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.045</y-m>
<z-m>0.0290</z-m>
<z-m>0.0230</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">CRZ FL/TEMP</format>
<format type="string">CRZ FL/TEMP.</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -478,19 +493,19 @@
<height type="int">64</height>
</font-resolution>
</text>
<!--<text>
<name>idleperf2</name>
<text>
<name>crzfltemp2</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0255</z-m>
<y-m>-0.045</y-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">+0.0/+0.0</format>
<format type="string">----- /---</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<font type="string">BoeingCDU-Small.ttf</font>
<property>autopilot/serviceable</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
@ -500,13 +515,14 @@
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>-->
</text>
<text>
<name>LONG</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.0405</y-m>
<z-m>0.0466</z-m>
<z-m>0.0435</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -529,12 +545,12 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.0425</z-m>
<z-m>0.0395</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<property type="string">position/longitude-string</property>
<format type="string">N/A</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>autopilot/serviceable</property>
@ -551,8 +567,8 @@
<name>tropo</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>0.039</y-m>
<z-m>0.0279</z-m>
<y-m>0.041</y-m>
<z-m>0.0230</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -575,7 +591,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.0237</z-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -594,30 +610,6 @@
</font-resolution>
</text>
<text>
<name>scratchpad</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.046</y-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>/MCDU[1]/scratchpad</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>
<!-- Colors -->
<!-- White -->
<animation>
@ -636,7 +628,6 @@
<object-name>wind</object-name>
<object-name>wind2</object-name>
<object-name>LONG</object-name>
<object-name>scratchpad</object-name>
<diffuse>
<red>1</red>
<green>1</green>
@ -668,6 +659,7 @@
<object-name>init</object-name>
<object-name>requeststar</object-name>
<object-name>request</object-name>
<object-name>fromtobox</object-name>
<diffuse>
<red>1</red>
<green>0.3</green>
@ -685,7 +677,7 @@
</specular>
<emission>
<red>1</red>
<green>0.40</green>
<green>0.3</green>
<blue>0</blue>
</emission>
</animation>

View file

@ -0,0 +1,276 @@
AC3Db
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 emis 0 0 0 spec 0 0 0 shi 128 trans 0
MATERIAL "ac3dmat1" rgb 1 1 1 amb 1 1 1 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 0 trans 0
OBJECT world
kids 5
OBJECT poly
name "fromto"
loc -0.0691401 -0.000598909 -0.016447
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
-0.00472546 -4.13274e-009 -0.0290224
-0.00472546 -4.13274e-009 0.00170836
-0.000334941 0 0.00170836
-0.000334948 0 -0.0290224
numsurf 1
SURF 0x0
mat 1
refs 4
3 0.900124 0.496296
0 0.900124 0.691819
1 0.476034 0.691819
2 0.476034 0.496296
kids 0
OBJECT poly
name "box"
loc 0.00822081 -0.0901982 0
texture "bg.jpg"
crease 45.000000
numvert 32
-0.0955113 0.0766067 0.0464514
-0.0955114 0.0766082 -0.0444134
-0.0955114 0.0766082 -0.0447677
-0.0955114 0.0766082 -0.0454758
-0.0955113 0.0766067 0.0468931
-0.0955113 0.0766067 0.0468114
-0.0955114 0.0766082 -0.0457814
-0.0167362 0.0766096 -0.0452061
-0.0173247 0.0766096 -0.045761
-0.0167736 0.0766082 0.0471958
-0.0165575 0.0766082 0.046439
-0.0181283 0.0766096 -0.0444482
-0.0181703 0.0766082 0.046439
-0.0948978 0.0766082 -0.0444134
-0.0948642 0.0766067 0.0464514
-0.0948978 0.0766082 -0.0457814
-0.0181283 0.0766096 -0.0457814
-0.0173122 0.0766312 -0.0457814
-0.0174052 0.0766096 -0.0457814
-0.0951288 0.0766067 0.0468931
-0.0948642 0.0766067 0.0468931
-0.0166872 0.0766082 0.0468931
-0.0173323 0.0766082 0.0468931
-0.0181703 0.0766082 0.0468931
-0.0178909 0.0766082 0.0468931
-0.0165618 0.0766082 0.046439
-0.0165618 0.0766096 -0.0445924
-0.0165618 0.0767837 -0.0453011
-0.0165618 0.0766082 0.046454
-0.016831 0.076744 -0.0457814
-0.0165618 0.0766096 -0.0444482
-0.0165618 0.0768194 0.047311
numsurf 22
SURF 0x10
mat 0
refs 4
28 0.130849 0.575937
21 0.127384 0.576512
9 0.124996 0.576908
31 0.124087 0.575937
SURF 0x10
mat 0
refs 5
29 0.858692 0.575937
17 0.858692 0.579377
8 0.858531 0.579434
7 0.854152 0.576736
27 0.854902 0.575937
SURF 0x10
mat 0
refs 4
26 0.849307 0.575937
7 0.854152 0.576736
11 0.848169 0.583119
30 0.848169 0.575937
SURF 0x10
mat 0
refs 3
27 0.854902 0.575937
7 0.854152 0.576736
26 0.849307 0.575937
SURF 0x10
mat 0
refs 4
30 0.848169 0.575937
11 0.848169 0.583119
12 0.130967 0.583312
25 0.130967 0.575937
SURF 0x10
mat 0
refs 5
25 0.130967 0.575937
12 0.130967 0.583312
22 0.127384 0.579469
21 0.127384 0.576512
28 0.130849 0.575937
SURF 0x10
mat 0
refs 3
28 0.130849 0.575937
10 0.130967 0.575917
25 0.130967 0.575937
SURF 0x10
mat 0
refs 3
24 0.127383 0.582031
12 0.130967 0.583312
23 0.127383 0.583312
SURF 0x10
mat 0
refs 3
22 0.127384 0.579469
12 0.130967 0.583312
24 0.127383 0.582031
SURF 0x10
mat 0
refs 4
23 0.127383 0.583312
12 0.130967 0.583312
14 0.130868 0.934955
20 0.127383 0.934955
SURF 0x10
mat 0
refs 3
20 0.127383 0.934955
14 0.130868 0.934955
19 0.127382 0.936169
SURF 0x10
mat 0
refs 3
18 0.858692 0.579803
8 0.858531 0.579434
17 0.858692 0.579377
SURF 0x10
mat 0
refs 4
16 0.85869 0.583119
11 0.848169 0.583119
8 0.858531 0.579434
18 0.858692 0.579803
SURF 0x10
mat 0
refs 4
15 0.858691 0.93511
13 0.847897 0.93511
11 0.848169 0.583119
16 0.85869 0.583119
SURF 0x10
mat 0
refs 3
7 0.854152 0.576736
8 0.858531 0.579434
11 0.848169 0.583119
SURF 0x10
mat 0
refs 4
12 0.130967 0.583312
11 0.848169 0.583119
13 0.847897 0.93511
14 0.130868 0.934955
SURF 0x10
mat 0
refs 4
3 0.85628 0.937922
13 0.847897 0.93511
15 0.858691 0.93511
6 0.858691 0.937922
SURF 0x10
mat 0
refs 4
4 0.127383 0.937922
19 0.127382 0.936169
14 0.130868 0.934955
5 0.128028 0.937922
SURF 0x10
mat 0
refs 3
5 0.128028 0.937922
14 0.130868 0.934955
0 0.130868 0.937923
SURF 0x10
mat 0
refs 3
2 0.850692 0.937923
13 0.847897 0.93511
3 0.85628 0.937922
SURF 0x10
mat 0
refs 3
1 0.847897 0.937924
13 0.847897 0.93511
2 0.850692 0.937923
SURF 0x10
mat 0
refs 4
0 0.130868 0.937923
14 0.130868 0.934955
13 0.847897 0.93511
1 0.847897 0.937924
kids 0
OBJECT poly
name "coroute"
loc -0.0690906 -0.00060165 0.00956676
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
-0.000208564 -2.91038e-010 0.00385576
-0.00491899 -5.41331e-009 0.00385576
-0.00491899 -5.41331e-009 0.0358682
-0.000208564 -2.91038e-010 0.0358682
numsurf 1
SURF 0x0
mat 2
refs 4
3 0.00547499 0.490563
0 0.446491 0.490563
1 0.446491 0.697977
2 0.00547499 0.697977
kids 0
OBJECT poly
name "face"
loc -0.0925569 -0.0235122 0.00196775
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
-0.000122987 0 0.028218
0.00643683 1.49012e-008 0.028218
0.00643683 1.49012e-008 -0.00762965
-0.000122987 0 -0.00762965
numsurf 1
SURF 0x0
mat 2
refs 4
3 0.634683 0.490563
0 4.45843e-005 0.490563
1 4.45843e-005 0.000756443
2 0.634683 0.000756443
kids 0
OBJECT poly
name "fltnum"
loc -0.055732 -0.00059823 0.0550418
data 10
enginepane
texture "amberbox.png"
crease 30.000002
numvert 4
0.00300431 4.88944e-009 -0.0098099
0.00300431 4.88944e-009 -0.0353372
0.0072827 1.234e-008 -0.0353372
0.0072827 1.234e-008 -0.0098099
numsurf 1
SURF 0x0
mat 2
refs 4
0 0.634683 0.346666
3 0.634683 0.15482
2 0.986171 0.15482
1 0.986171 0.346666
kids 0

View file

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!--
##################################################################
# A3XX mCDU by Joshua Davidson (it0uchpods) and Jonathan Redpath #
##################################################################
-->
<PropertyList>
<path>INITBOX.ac</path>
</PropertyList>

File diff suppressed because it is too large Load diff

View file

@ -10,9 +10,25 @@
<path>MCDU.ac</path>
<model>
<name>SCRATCHPAD</name>
<path>SCRATCHPAD.xml</path>
<offsets>
<heading-deg>180</heading-deg>
<roll-deg>180</roll-deg>
<pitch-deg>90</pitch-deg>
</offsets>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</model>
<model>
<name>STATUS</name>
<path>STATUS2.xml</path>
<path>STATUS.xml</path>
<offsets>
<heading-deg>180</heading-deg>
<roll-deg>180</roll-deg>
@ -20,10 +36,6 @@
</offsets>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
@ -36,6 +48,47 @@
</condition>
</model>
<model>
<name>INITA</name>
<path>INITA.xml</path>
<offsets>
<heading-deg>180</heading-deg>
<roll-deg>180</roll-deg>
<pitch-deg>90</pitch-deg>
</offsets>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
<equals>
<property>/MCDU[1]/page</property>
<value>INITA</value>
</equals>
</and>
</condition>
</model>
<animation>
<type>pick</type>
<object-name>init</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>mcdu2.pagebutton("init");</script>
<condition>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</condition>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>a</object-name>
@ -46,16 +99,10 @@
<command>nasal</command>
<script>mcdu2.button("A");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -70,16 +117,10 @@
<command>nasal</command>
<script>mcdu2.button("B");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -94,16 +135,10 @@
<command>nasal</command>
<script>mcdu2.button("C");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -118,16 +153,10 @@
<command>nasal</command>
<script>mcdu2.button("D");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -142,16 +171,10 @@
<command>nasal</command>
<script>mcdu2.button("E");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -166,16 +189,10 @@
<command>nasal</command>
<script>mcdu2.button("F");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -190,16 +207,10 @@
<command>nasal</command>
<script>mcdu2.button("G");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -214,16 +225,10 @@
<command>nasal</command>
<script>mcdu2.button("H");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -238,16 +243,10 @@
<command>nasal</command>
<script>mcdu2.button("I");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -262,16 +261,10 @@
<command>nasal</command>
<script>mcdu2.button("J");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -286,16 +279,10 @@
<command>nasal</command>
<script>mcdu2.button("K");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -310,16 +297,10 @@
<command>nasal</command>
<script>mcdu2.button("L");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -334,16 +315,10 @@
<command>nasal</command>
<script>mcdu2.button("M");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -358,16 +333,10 @@
<command>nasal</command>
<script>mcdu2.button("N");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -382,16 +351,10 @@
<command>nasal</command>
<script>mcdu2.button("O");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -406,16 +369,10 @@
<command>nasal</command>
<script>mcdu2.button("P");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -430,16 +387,10 @@
<command>nasal</command>
<script>mcdu2.button("Q");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -454,16 +405,10 @@
<command>nasal</command>
<script>mcdu2.button("R");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -478,16 +423,10 @@
<command>nasal</command>
<script>mcdu2.button("S");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -502,16 +441,10 @@
<command>nasal</command>
<script>mcdu2.button("T");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -526,16 +459,10 @@
<command>nasal</command>
<script>mcdu2.button("U");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -550,16 +477,10 @@
<command>nasal</command>
<script>mcdu2.button("V");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -574,16 +495,10 @@
<command>nasal</command>
<script>mcdu2.button("W");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -598,16 +513,10 @@
<command>nasal</command>
<script>mcdu2.button("X");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -622,16 +531,10 @@
<command>nasal</command>
<script>mcdu2.button("Y");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -646,16 +549,10 @@
<command>nasal</command>
<script>mcdu2.button("Z");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -670,16 +567,10 @@
<command>nasal</command>
<script>mcdu2.button("SLASH");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -694,16 +585,10 @@
<command>nasal</command>
<script>mcdu2.button("SP");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -718,16 +603,10 @@
<command>nasal</command>
<script>mcdu2.button("OVFY");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -742,16 +621,10 @@
<command>nasal</command>
<script>mcdu2.button("CLR");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -766,16 +639,10 @@
<command>nasal</command>
<script>mcdu2.button("0");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -790,16 +657,10 @@
<command>nasal</command>
<script>mcdu2.button("1");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -814,16 +675,10 @@
<command>nasal</command>
<script>mcdu2.button("2");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -838,16 +693,10 @@
<command>nasal</command>
<script>mcdu2.button("3");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -862,16 +711,10 @@
<command>nasal</command>
<script>mcdu2.button("4");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -886,16 +729,10 @@
<command>nasal</command>
<script>mcdu2.button("5");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -910,16 +747,10 @@
<command>nasal</command>
<script>mcdu2.button("6");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -934,16 +765,10 @@
<command>nasal</command>
<script>mcdu2.button("7");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -958,16 +783,10 @@
<command>nasal</command>
<script>mcdu2.button("8");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -982,16 +801,10 @@
<command>nasal</command>
<script>mcdu2.button("9");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -1006,16 +819,10 @@
<command>nasal</command>
<script>mcdu2.button("DOT");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>
@ -1030,16 +837,10 @@
<command>nasal</command>
<script>mcdu2.button("PLUSMINUS");</script>
<condition>
<and>
<greater-than-equals>
<property>/systems/electrical/bus/ac1</property>
<value>25</value>
</greater-than-equals>
<greater-than-equals>
<property>/systems/electrical/bus/ac2</property>
<value>25</value>
</greater-than-equals>
</and>
</condition>
</binding>
</action>

View file

@ -0,0 +1,64 @@
<?xml version="1.0"?>
<!--
##################################################################
# A3XX mCDU by Joshua Davidson (it0uchpods) and Jonathan Redpath #
##################################################################
-->
<PropertyList>
<path>EMPTY.ac</path>
<text>
<name>scratchpad</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.044</y-m>
<z-m>0.0120</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>/MCDU[1]/scratchpad</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>
<!-- Colors -->
<!-- White -->
<animation>
<type>material</type>
<object-name>scratchpad</object-name>
<diffuse>
<red>1</red>
<green>1</green>
<blue>1</blue>
</diffuse>
<ambient>
<red>0</red>
<green>0</green>
<blue>0</blue>
</ambient>
<specular>
<red>0</red>
<green>0</green>
<blue>0</blue>
</specular>
<emission>
<red>1</red>
<green>1</green>
<blue>1</blue>
</emission>
</animation>
</PropertyList>

View file

@ -15,7 +15,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.004</y-m>
<z-m>0.08</z-m>
<z-m>0.083</z-m>
</offsets>
<alignment>center-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -39,7 +39,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0745</z-m>
<z-m>0.0755</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -62,7 +62,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0705</z-m>
<z-m>0.0715</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -86,7 +86,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0655</z-m>
<z-m>0.065</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -109,7 +109,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0615</z-m>
<z-m>0.061</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -132,7 +132,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0615</z-m>
<z-m>0.061</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -156,7 +156,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.0565</z-m>
<z-m>0.0545</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -179,7 +179,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.040</y-m>
<z-m>0.052</z-m>
<z-m>0.0505</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -203,7 +203,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0385</z-m>
<z-m>0.033</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -226,7 +226,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0340</z-m>
<z-m>0.0285</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -250,7 +250,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0295</z-m>
<z-m>0.0225</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -273,7 +273,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.043</y-m>
<z-m>0.0255</z-m>
<z-m>0.0185</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -297,7 +297,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.040</y-m>
<z-m>0.0295</z-m>
<z-m>0.0225</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -320,7 +320,7 @@
<offsets>
<x-m>-0.001</x-m>
<y-m>0.043</y-m>
<z-m>0.0255</z-m>
<z-m>0.0185</z-m>
</offsets>
<alignment>right-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
@ -339,30 +339,6 @@
</font-resolution>
</text>
<text>
<name>scratchpad</name>
<offsets>
<x-m>-0.001</x-m>
<y-m>-0.046</y-m>
<z-m>0.0190</z-m>
</offsets>
<alignment>left-center</alignment>
<axis-alignment>yz-plane</axis-alignment>
<type type="string">text-value</type>
<format type="string">%s</format>
<truncate type="bool">false</truncate>
<font type="string">BoeingCDU-Large.ttf</font>
<property>/MCDU[1]/scratchpad</property>
<draw-text type="bool">true</draw-text>
<draw-alignment type="bool">false</draw-alignment>
<draw-boundingbox type="bool">false</draw-boundingbox>
<character-size>0.006</character-size>
<font-resolution>
<width type="int">64</width>
<height type="int">64</height>
</font-resolution>
</text>
<!-- Colors -->
<!-- White -->
<animation>
@ -375,7 +351,6 @@
<object-name>idleperf</object-name>
<object-name>software</object-name>
<object-name>statusxload</object-name>
<object-name>scratchpad</object-name>
<diffuse>
<red>1</red>
<green>1</green>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

View file

@ -14,6 +14,15 @@ var MCDU_reset = func {
setprop("/MCDU[0]/scratchpad", "");
}
var pagebutton = func(btn) {
if (btn == "init") {
setprop("/MCDU[0]/page", "NONE");
settimer(func {
setprop("/MCDU[0]/page", "INITA");
}, 0.3);
}
}
var button = func(btn) {
var scratchpad = getprop("/MCDU[0]/scratchpad");
if (btn == "A") {
@ -71,9 +80,14 @@ var button = func(btn) {
} else if (btn == "SLASH") {
setprop("/MCDU[0]/scratchpad", scratchpad ~ "/");
} else if (btn == "SP") {
setprop("/MCDU[0]/scratchpad", scratchpad ~ "");
} else if (btn == "CLR") {
setprop("/MCDU[0]/scratchpad", " ");
} else if (btn == "CLR") {
var scratchpad = getprop("/MCDU[0]/scratchpad");
if (scratchpad == "NOT ALLOWED") {
setprop("/MCDU[0]/scratchpad", "");
} else if (size(scratchpad) > 0) {
setprop("/MCDU[0]/scratchpad", left(scratchpad, size(scratchpad)-1));
}
} else if (btn == "0") {
setprop("/MCDU[0]/scratchpad", scratchpad ~ "0");
} else if (btn == "1") {

View file

@ -14,6 +14,15 @@ var MCDU_reset = func {
setprop("/MCDU[1]/scratchpad", "");
}
var pagebutton = func(btn) {
if (btn == "init") {
setprop("/MCDU[1]/page", "NONE");
settimer(func {
setprop("/MCDU[1]/page", "INITA");
}, 0.3);
}
}
var button = func(btn) {
var scratchpad = getprop("/MCDU[1]/scratchpad");
if (btn == "A") {
@ -71,9 +80,14 @@ var button = func(btn) {
} else if (btn == "SLASH") {
setprop("/MCDU[1]/scratchpad", scratchpad ~ "/");
} else if (btn == "SP") {
setprop("/MCDU[1]/scratchpad", scratchpad ~ "");
} else if (btn == "CLR") {
setprop("/MCDU[1]/scratchpad", " ");
} else if (btn == "CLR") {
var scratchpad = getprop("/MCDU[1]/scratchpad");
if (scratchpad == "NOT ALLOWED") {
setprop("/MCDU[0]/scratchpad", "");
} else if (size(scratchpad) > 0) {
setprop("/MCDU[1]/scratchpad", left(scratchpad, size(scratchpad)-1));
}
} else if (btn == "0") {
setprop("/MCDU[1]/scratchpad", scratchpad ~ "0");
} else if (btn == "1") {