mcdu page
This commit is contained in:
parent
98294402f8
commit
5ce8f0fb9b
4 changed files with 302 additions and 8 deletions
|
@ -58,6 +58,54 @@
|
|||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<name>fmgctextgreen</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>-0.045</y-m>
|
||||
<z-m>0.0715</z-m>
|
||||
</offsets>
|
||||
<alignment>left-center</alignment>
|
||||
<axis-alignment>yz-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string"><FMGC</format>
|
||||
<truncate type="bool">false</truncate>
|
||||
<font type="string">BoeingCDU-Large.ttf</font>
|
||||
<property>autopilot/serviceable</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.0050</character-size>
|
||||
<font-resolution>
|
||||
<width type="int">64</width>
|
||||
<height type="int">64</height>
|
||||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<name>fmgctextblue</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>-0.045</y-m>
|
||||
<z-m>0.0715</z-m>
|
||||
</offsets>
|
||||
<alignment>left-center</alignment>
|
||||
<axis-alignment>yz-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string"><FMGC (SEL)</format>
|
||||
<truncate type="bool">false</truncate>
|
||||
<font type="string">BoeingCDU-Large.ttf</font>
|
||||
<property>autopilot/serviceable</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.0050</character-size>
|
||||
<font-resolution>
|
||||
<width type="int">64</width>
|
||||
<height type="int">64</height>
|
||||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<name>acarstext</name>
|
||||
<offsets>
|
||||
|
@ -154,6 +202,40 @@
|
|||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>fmgctext</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>MCDU[0]/active</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>fmgctextblue</object-name>
|
||||
<object-name>fmgctextsel</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>MCDU[0]/active</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>fmgctextgreen</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>MCDU[0]/active</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- Colors -->
|
||||
<!-- White -->
|
||||
<animation>
|
||||
|
@ -186,4 +268,56 @@
|
|||
</emission>
|
||||
</animation>
|
||||
|
||||
<!-- Green -->
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>fmgctextgreen</object-name>
|
||||
<diffuse>
|
||||
<red>0.2</red>
|
||||
<green>0.4</green>
|
||||
<blue>0.2</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>0.2</red>
|
||||
<green>0.4</green>
|
||||
<blue>0.2</blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<!-- Blue -->
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>fmgctextblue</object-name>
|
||||
<diffuse>
|
||||
<red>0</red>
|
||||
<green>0.5</green>
|
||||
<blue>0.7</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>0</red>
|
||||
<green>0.5</green>
|
||||
<blue>0.7</blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -58,6 +58,54 @@
|
|||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<name>fmgctextgreen</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>-0.045</y-m>
|
||||
<z-m>0.0715</z-m>
|
||||
</offsets>
|
||||
<alignment>left-center</alignment>
|
||||
<axis-alignment>yz-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string"><FMGC</format>
|
||||
<truncate type="bool">false</truncate>
|
||||
<font type="string">BoeingCDU-Large.ttf</font>
|
||||
<property>autopilot/serviceable</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.0050</character-size>
|
||||
<font-resolution>
|
||||
<width type="int">64</width>
|
||||
<height type="int">64</height>
|
||||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<name>fmgctextblue</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>-0.045</y-m>
|
||||
<z-m>0.0715</z-m>
|
||||
</offsets>
|
||||
<alignment>left-center</alignment>
|
||||
<axis-alignment>yz-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string"><FMGC (SEL)</format>
|
||||
<truncate type="bool">false</truncate>
|
||||
<font type="string">BoeingCDU-Large.ttf</font>
|
||||
<property>autopilot/serviceable</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.0050</character-size>
|
||||
<font-resolution>
|
||||
<width type="int">64</width>
|
||||
<height type="int">64</height>
|
||||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<name>acarstext</name>
|
||||
<offsets>
|
||||
|
@ -154,6 +202,40 @@
|
|||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>fmgctext</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>MCDU[1]/active</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>fmgctextblue</object-name>
|
||||
<object-name>fmgctextsel</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>MCDU[1]/active</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>fmgctextgreen</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>MCDU[1]/active</property>
|
||||
<value>2</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<!-- Colors -->
|
||||
<!-- White -->
|
||||
<animation>
|
||||
|
@ -186,4 +268,56 @@
|
|||
</emission>
|
||||
</animation>
|
||||
|
||||
<!-- Green -->
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>fmgctextgreen</object-name>
|
||||
<diffuse>
|
||||
<red>0.2</red>
|
||||
<green>0.4</green>
|
||||
<blue>0.2</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>0.2</red>
|
||||
<green>0.4</green>
|
||||
<blue>0.2</blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
<!-- Blue -->
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>fmgctextblue</object-name>
|
||||
<diffuse>
|
||||
<red>0</red>
|
||||
<green>0.5</green>
|
||||
<blue>0.7</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>0</red>
|
||||
<green>0.5</green>
|
||||
<blue>0.7</blue>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
||||
|
|
|
@ -10,6 +10,7 @@ var MCDU_init = func {
|
|||
}
|
||||
|
||||
var MCDU_reset = func {
|
||||
setprop("/MCDU[0]/active", 0);
|
||||
setprop("/it-autoflight/settings/togaspd", 157);
|
||||
setprop("/MCDU[0]/last-scratchpad", "");
|
||||
setprop("/MCDU[0]/last-fmgc-page", "STATUS");
|
||||
|
@ -74,10 +75,15 @@ var MCDU_reset = func {
|
|||
|
||||
var lskbutton = func(btn) {
|
||||
if (btn == "1") {
|
||||
if (getprop("/MCDU[0]/page") == "MCDU") {
|
||||
setprop("/MCDU[0]/page", getprop("/MCDU[0]/last-fmgc-page"));
|
||||
setprop("/MCDU[0]/scratchpad-msg", "0");
|
||||
setprop("/MCDU[0]/scratchpad", "");
|
||||
if (getprop("/MCDU[0]/page") == "MCDU" and getprop("/MCDU[0]/active") != 2) {
|
||||
setprop("/MCDU[0]/scratchpad", "WAIT FOR SYSTEM RESPONSE");
|
||||
setprop("/MCDU[0]/active", 1);
|
||||
settimer(func(){
|
||||
setprop("/MCDU[0]/page", getprop("/MCDU[0]/last-fmgc-page"));
|
||||
setprop("/MCDU[0]/scratchpad", "");
|
||||
setprop("/MCDU[0]/scratchpad-msg", "0");
|
||||
setprop("/MCDU[0]/active", 2);
|
||||
}, 2);
|
||||
} else if (getprop("/MCDU[0]/page") == "TO") {
|
||||
perfTOInput("L1");
|
||||
} else if (getprop("/MCDU[0]/page") == "RADNAV") {
|
||||
|
@ -290,6 +296,12 @@ var rskbutton = func(btn) {
|
|||
perfCLBInput("R6");
|
||||
} else if (getprop("/MCDU[0]/page") == "CRZ") {
|
||||
perfCRZInput("R6");
|
||||
} else if ((getprop("/MCDU[0]/page") == "DATA") or (getprop("/MCDU[0]/page") == "PRINTFUNC") or (getprop("/MCDU[0]/page") == "PRINTFUNC2")) {
|
||||
if (getprop("/MCDU[0]/scratchpad") != "AOC DISABLED") {
|
||||
setprop("/MCDU[0]/last-scratchpad", getprop("/MCDU[0]/scratchpad"));
|
||||
}
|
||||
setprop("/MCDU[0]/scratchpad-msg", "1");
|
||||
setprop("/MCDU[0]/scratchpad", "AOC DISABLED");
|
||||
} else {
|
||||
if (getprop("/MCDU[0]/scratchpad") != "NOT ALLOWED") {
|
||||
setprop("/MCDU[0]/last-scratchpad", getprop("/MCDU[0]/scratchpad"));
|
||||
|
@ -363,6 +375,7 @@ var pagebutton = func(btn) {
|
|||
} else if (btn == "data") {
|
||||
setprop("/MCDU[0]/page", "DATA");
|
||||
} else if (btn == "mcdu") {
|
||||
setprop("/MCDU[0]/active", 0);
|
||||
setprop("/MCDU[0]/last-fmgc-page", getprop("/MCDU[0]/page"));
|
||||
setprop("/MCDU[0]/scratchpad", "SELECT DESIRED SYSTEM");
|
||||
setprop("/MCDU[0]/page", "MCDU");
|
||||
|
|
|
@ -10,6 +10,7 @@ var MCDU_init = func {
|
|||
}
|
||||
|
||||
var MCDU_reset = func {
|
||||
setprop("/MCDU[1]/active", 0);
|
||||
setprop("/it-autoflight/settings/togaspd", 157);
|
||||
setprop("/MCDU[1]/last-scratchpad", "");
|
||||
setprop("/MCDU[1]/last-fmgc-page", "STATUS");
|
||||
|
@ -74,10 +75,15 @@ var MCDU_reset = func {
|
|||
|
||||
var lskbutton = func(btn) {
|
||||
if (btn == "1") {
|
||||
if (getprop("/MCDU[1]/page") == "MCDU") {
|
||||
setprop("/MCDU[1]/page", getprop("/MCDU[1]/last-fmgc-page"));
|
||||
setprop("/MCDU[1]/scratchpad-msg", "0");
|
||||
setprop("/MCDU[1]/scratchpad", "");
|
||||
if (getprop("/MCDU[1]/page") == "MCDU" and getprop("/MCDU[1]/active") != 2) {
|
||||
setprop("/MCDU[1]/scratchpad", "WAIT FOR SYSTEM RESPONSE");
|
||||
setprop("/MCDU[1]/active", 1);
|
||||
settimer(func(){
|
||||
setprop("/MCDU[1]/page", getprop("/MCDU[1]/last-fmgc-page"));
|
||||
setprop("/MCDU[1]/scratchpad", "");
|
||||
setprop("/MCDU[1]/scratchpad-msg", "0");
|
||||
setprop("/MCDU[1]/active", 2);
|
||||
}, 2);
|
||||
} else if (getprop("/MCDU[1]/page") == "TO") {
|
||||
perfTOInput("L1");
|
||||
} else if (getprop("/MCDU[1]/page") == "RADNAV") {
|
||||
|
@ -190,6 +196,12 @@ var lskbutton = func(btn) {
|
|||
perfDESInput("L6");
|
||||
} else if (getprop("/MCDU[1]/page") == "PRINTFUNC2") {
|
||||
printInput2("L6");
|
||||
} else if ((getprop("/MCDU[1]/page") == "DATA") or (getprop("/MCDU[1]/page") == "PRINTFUNC") or (getprop("/MCDU[1]/page") == "PRINTFUNC2")) {
|
||||
if (getprop("/MCDU[1]/scratchpad") != "AOC DISABLED") {
|
||||
setprop("/MCDU[1]/last-scratchpad", getprop("/MCDU[0]/scratchpad"));
|
||||
}
|
||||
setprop("/MCDU[1]/scratchpad-msg", "1");
|
||||
setprop("/MCDU[1]/scratchpad", "AOC DISABLED");
|
||||
} else {
|
||||
if (getprop("/MCDU[1]/scratchpad") != "NOT ALLOWED") {
|
||||
setprop("/MCDU[1]/last-scratchpad", getprop("/MCDU[1]/scratchpad"));
|
||||
|
@ -361,6 +373,7 @@ var pagebutton = func(btn) {
|
|||
} else if (btn == "data") {
|
||||
setprop("/MCDU[1]/page", "DATA");
|
||||
} else if (btn == "mcdu") {
|
||||
setprop("/MCDU[1]/active", 0);
|
||||
setprop("/MCDU[1]/last-fmgc-page", getprop("/MCDU[1]/page"));
|
||||
setprop("/MCDU[1]/scratchpad", "SELECT DESIRED SYSTEM");
|
||||
setprop("/MCDU[1]/page", "MCDU");
|
||||
|
|
Reference in a new issue