From 676a40f912f584509a591ade9dea8c5dd2241846 Mon Sep 17 00:00:00 2001 From: Michael Soitanen Date: Sun, 29 Nov 2015 19:04:03 +0300 Subject: [PATCH] NavDisplay: Added mode, when heading bug is always displayed regardless of track-heading switch. Switched off by default. --- Nasal/canvas/map/navdisplay.mfd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Nasal/canvas/map/navdisplay.mfd b/Nasal/canvas/map/navdisplay.mfd index d94671ae3..d2d2ef56c 100644 --- a/Nasal/canvas/map/navdisplay.mfd +++ b/Nasal/canvas/map/navdisplay.mfd @@ -84,6 +84,7 @@ var default_switches = { 'toggle_chrono': {path: '/inputs/CHRONO', value: 0, type: 'INT'}, 'toggle_xtrk_error': {path: '/mfd/xtrk-error', value: 0, type: 'BOOL'}, 'toggle_trk_line': {path: '/mfd/trk-line', value: 0, type: 'BOOL'}, + 'toggle_hdg_bug_only': {path: '/mfd/hdg-bug-only', value: 0, type: 'BOOL'}, }; ## @@ -719,7 +720,7 @@ var NavDisplay = { me.symbols.selHdgLine2.hide(); me.symbols.curHdgPtr.setVisible(staPtrVis); me.symbols.HdgBugCRT.setVisible(staPtrVis and !dispLCD); - if(me.get_switch('toggle_track_heading')) + if(me.get_switch('toggle_track_heading') and !me.get_switch('toggle_hdg_bug_only')) { me.symbols.HdgBugLCD.hide(); me.symbols.TrkBugLCD.setVisible(staPtrVis and dispLCD); @@ -767,7 +768,7 @@ var NavDisplay = { me.symbols.selHdgLine.hide(); me.symbols.curHdgPtr2.setVisible(staPtrVis); me.symbols.HdgBugCRT2.setVisible(staPtrVis and !dispLCD); - if(me.get_switch('toggle_track_heading')) + if(me.get_switch('toggle_track_heading') and !me.get_switch('toggle_hdg_bug_only')) { me.symbols.HdgBugLCD2.hide(); me.symbols.TrkBugLCD2.setVisible(staPtrVis and dispLCD);