A3XX: More Canvas ND fixing

This commit is contained in:
Joshua Davidson 2017-09-27 16:04:39 -04:00
parent ee65d06e9f
commit 099356755b
3 changed files with 19 additions and 5 deletions

View file

@ -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>

View file

@ -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

View file

@ -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;