bugfix, initb
This commit is contained in:
parent
4dd39f63bd
commit
2793085373
3 changed files with 105 additions and 9 deletions
|
@ -48,7 +48,31 @@
|
|||
</text>
|
||||
|
||||
<text>
|
||||
<name>page</name>
|
||||
<name>page-blockset</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.083</z-m>
|
||||
</offsets>
|
||||
<alignment>center-center</alignment>
|
||||
<axis-alignment>yz-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string">INIT FUEL PREDICTION</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>pagearrows</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>0.04</y-m>
|
||||
|
@ -552,11 +576,35 @@
|
|||
<height type="int">64</height>
|
||||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>page</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>/FMGC/internal/block-set</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>page-blockset</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>/FMGC/internal/block-set</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
<!-- Colors -->
|
||||
<!-- White -->
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>page</object-name>
|
||||
<object-name>pagearrows</object-name>
|
||||
<object-name>page-blockset</object-name>
|
||||
<object-name>taxi</object-name>
|
||||
<object-name>triptime</object-name>
|
||||
<object-name>triptime2</object-name>
|
||||
|
|
|
@ -48,7 +48,31 @@
|
|||
</text>
|
||||
|
||||
<text>
|
||||
<name>page</name>
|
||||
<name>page-blockset</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>0.0</y-m>
|
||||
<z-m>0.083</z-m>
|
||||
</offsets>
|
||||
<alignment>center-center</alignment>
|
||||
<axis-alignment>yz-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string">INIT FUEL PREDICTION</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>pagearrows</name>
|
||||
<offsets>
|
||||
<x-m>-0.001</x-m>
|
||||
<y-m>0.04</y-m>
|
||||
|
@ -552,11 +576,35 @@
|
|||
<height type="int">64</height>
|
||||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>page</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>/FMGC/internal/block-set</property>
|
||||
<value>0</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
|
||||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>page-blockset</object-name>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>/FMGC/internal/block-set</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
</animation>
|
||||
<!-- Colors -->
|
||||
<!-- White -->
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<object-name>page</object-name>
|
||||
<object-name>pagearrows</object-name>
|
||||
<object-name>page-blockset</object-name>
|
||||
<object-name>taxi</object-name>
|
||||
<object-name>triptime</object-name>
|
||||
<object-name>triptime2</object-name>
|
||||
|
|
|
@ -141,20 +141,20 @@ var initInputA = func(key) {
|
|||
if (scratchpad == "CLR") {
|
||||
setprop("/FMGC/internal/tropo", 36090);
|
||||
setprop("/FMGC/internal/tropo-set", 0);
|
||||
setprop("/MCDU[0]/scratchpad-msg", "0");
|
||||
setprop("/MCDU[0]/scratchpad", "");
|
||||
setprop("/MCDU[1]/scratchpad-msg", "0");
|
||||
setprop("/MCDU[1]/scratchpad", "");
|
||||
} else {
|
||||
var tropo = size(scratchpad);
|
||||
if (tropo == 5) {
|
||||
setprop("/FMGC/internal/tropo-set", 1);
|
||||
setprop("/FMGC/internal/tropo", scratchpad);
|
||||
setprop("/MCDU[0]/scratchpad", "");
|
||||
setprop("/MCDU[1]/scratchpad", "");
|
||||
} else {
|
||||
if (getprop("/MCDU[0]/scratchpad") != "NOT ALLOWED") {
|
||||
setprop("/MCDU[0]/last-scratchpad", getprop("/MCDU[0]/scratchpad"));
|
||||
if (getprop("/MCDU[1]/scratchpad") != "NOT ALLOWED") {
|
||||
setprop("/MCDU[1]/last-scratchpad", getprop("/MCDU[1]/scratchpad"));
|
||||
}
|
||||
setprop("/MCDU[0]/scratchpad-msg", "1");
|
||||
setprop("/MCDU[0]/scratchpad", "NOT ALLOWED");
|
||||
setprop("/MCDU[1]/scratchpad-msg", "1");
|
||||
setprop("/MCDU[1]/scratchpad", "NOT ALLOWED");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue