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) {
|
||||
#print("TERRAIN TOGGLE: " ~ nd.get_switch("toggle_terrain"));
|
||||
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));
|
||||
if (visible) {
|
||||
layer.update();
|
||||
|
@ -1988,7 +1988,7 @@ canvas.NDStyles["Airbus"] = {
|
|||
impl: {
|
||||
init: func(nd,symbol),
|
||||
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)) ),
|
||||
is_true: func(nd){
|
||||
if (terrain_maxalt.getValue() != -9999) {
|
||||
|
|
Loading…
Add table
Reference in a new issue