Skip to content

Commit d600bba

Browse files
authored
Merge pull request #2369 from bobbycisneros/master
Added OSD Up/Down reference element
2 parents 168e778 + 42c9703 commit d600bba

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

locales/en/messages.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4995,7 +4995,13 @@
49954995
"osdDescTotalFlights": {
49964996
"message": "Approximate total number of flights"
49974997
},
4998-
4998+
"osdTextElementUpDownReference": {
4999+
"message": "Up (Pitch 90 deg)/Down (Pitch -90 deg) Reference",
5000+
"description": "OSD Symbol to show when pitch is approaching vertical (90 deg, U) and D for nose down (-90 deg, D)"
5001+
},
5002+
"osdDescUpDownReference": {
5003+
"message": "OSD Symbol to show when pitch is approaching vertical (90 deg, U) and D for nose down (-90 deg, D)"
5004+
},
49995005
"osdTextElementUnknown": {
50005006
"message": "Unknown $1",
50015007
"description": "One of the elements of the OSD"

src/js/tabs/osd.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,15 @@ OSD.loadDisplayFields = function() {
11811181
positionable: true,
11821182
preview: "#9876",
11831183
},
1184+
OSD_UP_DOWN_REFERENCE: {
1185+
name: 'OSD_UP_DOWN_REFERENCE',
1186+
text: 'osdTextElementUpDownReference',
1187+
desc: 'osdDescUpDownReference',
1188+
defaultPosition: 238,
1189+
draw_order: 465,
1190+
positionable: true,
1191+
preview: 'U',
1192+
},
11841193
};
11851194
};
11861195

@@ -1602,6 +1611,7 @@ OSD.chooseFields = function() {
16021611
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
16031612
OSD.constants.DISPLAY_FIELDS = OSD.constants.DISPLAY_FIELDS.concat([
16041613
F.TOTAL_FLIGHTS,
1614+
F.OSD_UP_DOWN_REFERENCE,
16051615
]);
16061616
}
16071617
}

0 commit comments

Comments
 (0)