terr-on-nd onyl id not plan
This commit is contained in:
parent
4db7d57ffa
commit
4ae7bc1a27
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ canvas.NDStyles["Airbus"] = {
|
||||||
predicate: func(nd, layer) {
|
predicate: func(nd, layer) {
|
||||||
#print("TERRAIN TOGGLE: " ~ nd.get_switch("toggle_terrain"));
|
#print("TERRAIN TOGGLE: " ~ nd.get_switch("toggle_terrain"));
|
||||||
var visible = nd.get_switch("toggle_terrain") and
|
var visible = nd.get_switch("toggle_terrain") and
|
||||||
nd.get_switch("toggle_display_mode") == "MAP" and (nd.rangeNm() <= 40) and
|
nd.get_switch("toggle_display_mode") != "PLAN" and (nd.rangeNm() <= 40) and
|
||||||
(nd.adirs_property.getValue() == 1 or (adirs_3.getValue() == 1 and att_switch.getValue() == nd.attitude_heading_setting));
|
(nd.adirs_property.getValue() == 1 or (adirs_3.getValue() == 1 and att_switch.getValue() == nd.attitude_heading_setting));
|
||||||
if (visible) {
|
if (visible) {
|
||||||
layer.update();
|
layer.update();
|
||||||
|
@ -1988,7 +1988,7 @@ canvas.NDStyles["Airbus"] = {
|
||||||
impl: {
|
impl: {
|
||||||
init: func(nd,symbol),
|
init: func(nd,symbol),
|
||||||
predicate: func(nd) ( nd.get_switch("toggle_terrain") and
|
predicate: func(nd) ( nd.get_switch("toggle_terrain") and
|
||||||
nd.get_switch("toggle_display_mode") == "MAP" and (nd.rangeNm() <= 40) and
|
nd.get_switch("toggle_display_mode") != "PLAN" and (nd.rangeNm() <= 40) and
|
||||||
(nd.adirs_property.getValue() == 1 or (adirs_3.getValue() == 1 and att_switch.getValue() == nd.attitude_heading_setting)) ),
|
(nd.adirs_property.getValue() == 1 or (adirs_3.getValue() == 1 and att_switch.getValue() == nd.attitude_heading_setting)) ),
|
||||||
is_true: func(nd){
|
is_true: func(nd){
|
||||||
if (terrain_maxalt.getValue() != -9999) {
|
if (terrain_maxalt.getValue() != -9999) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue