Display craftname in OSD preview
parent
667c4d5af3
commit
5b16361f3b
12
tabs/osd.js
12
tabs/osd.js
|
@ -254,6 +254,13 @@ OSD.generateTimerPreview = function(osd_data, timer_index) {
|
|||
return preview;
|
||||
};
|
||||
|
||||
OSD.generateCraftName = function(osd_data) {
|
||||
var preview = 'CRAFT_NAME';
|
||||
if (CONFIG.name != '')
|
||||
preview = CONFIG.name.toUpperCase();
|
||||
return preview;
|
||||
}
|
||||
|
||||
OSD.constants = {
|
||||
VISIBLE: 0x0800,
|
||||
VIDEO_TYPES: [
|
||||
|
@ -383,7 +390,10 @@ OSD.constants = {
|
|||
desc: 'osdDescElementCraftName',
|
||||
default_position: -77,
|
||||
positionable: true,
|
||||
preview: 'CRAFT_NAME'
|
||||
preview: function(osd_data) {
|
||||
return OSD.generateCraftName(osd_data, 1);
|
||||
}
|
||||
//preview: 'c'
|
||||
},
|
||||
ALTITUDE: {
|
||||
name: 'ALTITUDE',
|
||||
|
|
Loading…
Reference in New Issue