1
0
Fork 0

fix above colors

This commit is contained in:
Inuyaksa 2021-02-13 17:06:04 +01:00
parent 0026a6e3a3
commit 7fac5114e8
4 changed files with 4 additions and 5 deletions

View file

@ -627,7 +627,7 @@ canvas.NavDisplay.update = func() # FIXME: This stuff is still too aircraft spec
# conditional stuff
if(!contains(feature.impl, "predicate")) continue; # no conditional stuff
if ( var result=feature.impl.predicate(me) )
feature.impl.is_true(me, result); # pass the result to the predicate
feature.impl.is_true(me, result); # pass the result to the predicate
else
feature.impl.is_false( me, result ); # pass the result to the predicate
}

View file

@ -21,6 +21,7 @@ var new = func(layer) {
parents: [__self__],
layer: layer,
map: layer.map,
startpos: layer.map.getPosCoord(),
listeners: [],
};
layer.searcher._equals = func(l,r) l.equals(r);

View file

@ -80,7 +80,7 @@ var updateTerrain = func(r_scaled){
grad = int(diff/1000) + 3;
if (grad>5) grad = 5;
} else {
if (diff<500) grad = 3; # lite yellowe
if (diff>-500) grad = 3; # lite yellow
else {
grad = 2 + int(diff/1000);
if (grad<0) grad = 0;

View file

@ -101,9 +101,7 @@ canvas.NDStyles["Airbus"] = {
options: {
viewport_radius: 670, #512, #706,
position_callback: func(nd, pos){
var curr= geo.aircraft_position();
pos.lat = curr.lat();
pos.lon = curr.lon();
pos = me.startpos;
}
},
"z-index": -100,