Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
extend track-up disable to remaing MFT waypoint info pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kaosfere committed Oct 2, 2020
1 parent efe9e36 commit 59f8ca5
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,11 @@ class AS1000_MFD_NearestAirport_Element extends MFD_NearestAirport_Element {
super.onEnter();
this.mapContainer.appendChild(this.mapElement);
this.mapElement.setAttribute("bing-mode", "vfr");
this.gps.mapElement.instrument.setTrackUpDisabled(true);
}
onExit() {
super.onExit();
this.gps.mapElement.instrument.setTrackUpDisabled(false);
}
onUpdate(_deltaTime) {
super.onUpdate(_deltaTime);
Expand All @@ -979,6 +984,11 @@ class AS1000_MFD_NearestVOR_Element extends MFD_NearestVOR_Element {
super.onEnter();
this.mapContainer.appendChild(this.mapElement);
this.mapElement.setAttribute("bing-mode", "vfr");
this.gps.mapElement.instrument.setTrackUpDisabled(true);
}
onExit() {
super.onExit();
this.gps.mapElement.instrument.setTrackUpDisabled(false);
}
onUpdate(_deltaTime) {
super.onUpdate(_deltaTime);
Expand Down Expand Up @@ -1006,6 +1016,11 @@ class AS1000_MFD_NearestNDB_Element extends MFD_NearestNDB_Element {
super.onEnter();
this.mapContainer.appendChild(this.mapElement);
this.mapElement.setAttribute("bing-mode", "vfr");
this.gps.mapElement.instrument.setTrackUpDisabled(true);
}
onExit() {
super.onExit();
this.gps.mapElement.instrument.setTrackUpDisabled(false);
}
onUpdate(_deltaTime) {
super.onUpdate(_deltaTime);
Expand All @@ -1023,6 +1038,11 @@ class AS1000_MFD_NearestIntersection_Element extends MFD_NearestIntersection_Ele
super.onEnter();
this.mapContainer.appendChild(this.mapElement);
this.mapElement.setAttribute("bing-mode", "vfr");
this.gps.mapElement.instrument.setTrackUpDisabled(true);
}
onExit() {
super.onExit();
this.gps.mapElement.instrument.setTrackUpDisabled(false);
}
onUpdate(_deltaTime) {
super.onUpdate(_deltaTime);
Expand Down

0 comments on commit 59f8ca5

Please sign in to comment.