A3XX: More Canvas ND fixing
This commit is contained in:
parent
ee65d06e9f
commit
099356755b
3 changed files with 19 additions and 5 deletions
|
@ -700,6 +700,20 @@
|
|||
<volume type="double">0</volume>
|
||||
</dme>
|
||||
|
||||
<efis n="0">
|
||||
<input n="0">
|
||||
<vor-adf-1 type="int">2</vor-adf-1>
|
||||
<vor-adf-2 type="int">2</vor-adf-2>
|
||||
</input>
|
||||
</efis>
|
||||
|
||||
<efis n="1">
|
||||
<input n="0">
|
||||
<vor-adf-1 type="int">2</vor-adf-1>
|
||||
<vor-adf-2 type="int">2</vor-adf-2>
|
||||
</input>
|
||||
</efis>
|
||||
|
||||
<nav n="0">
|
||||
<frequencies>
|
||||
<selected-mhz type="double">111.15</selected-mhz>
|
||||
|
|
|
@ -9,8 +9,8 @@ SymbolLayer.add(name, {
|
|||
type: name, # Symbol type
|
||||
df_controller: __self__, # controller to use by default -- this one
|
||||
df_options: {
|
||||
vor1_frq: 'instrumentation/nav/frequencies/selected-mhz',
|
||||
vor2_frq: 'instrumentation/nav[1]/frequencies/selected-mhz'
|
||||
vor1_frq: 'instrumentation/nav[2]/frequencies/selected-mhz',
|
||||
vor2_frq: 'instrumentation/nav[3]/frequencies/selected-mhz'
|
||||
},
|
||||
df_style: {
|
||||
scale: 1
|
||||
|
|
|
@ -256,10 +256,10 @@ var aglgears = func {
|
|||
|
||||
aglgears();
|
||||
|
||||
canvas.Text._lastText2 = "";
|
||||
canvas.Text._lastText = canvas.Text["_lastText"];
|
||||
canvas.Text.setText = func (text) {
|
||||
if (text == me._lastText2) {return me;}
|
||||
me._lastText2 = text;
|
||||
if (text == me._lastText) {return me;}
|
||||
me._lastText = text;
|
||||
me.set("text", typeof(text) == 'scalar' ? text : "");
|
||||
};
|
||||
canvas.Element._lastVisible = 1;
|
||||
|
|
Reference in a new issue