1
0
Fork 0

FG1000: CHECKLIST MFD Softkey

This commit is contained in:
Stuart Buchanan 2020-10-13 19:30:29 +01:00
parent bf9c0f12e1
commit ccedd4252f
3 changed files with 5 additions and 5 deletions

View file

@ -175,8 +175,8 @@ var Checklist =
topMenu : func(device, pg, menuitem) {
pg.clearMenu();
pg.resetMenuColors();
pg.addMenuItem(0, "ENGINE", pg, pg.mfd.EIS.engineMenu);
pg.addMenuItem(2, "MAP", pg, pg.mfd.NavigationMap.mapMenu);
# Manual is inconsistent. Checklist page has SYSTEM, menu structure shows ENGINE
pg.addMenuItem(0, "SYSTEM", pg, pg.mfd.EIS.systemMenu);
pg.addMenuItem(5, "CHECK", pg,
func(dev, pg, mi) { pg.getController().toggleCurrentItem(); dev.updateMenus(); }, # callback
func(svg, mi) { pg.displayCheckUncheck(svg); } # Display function
@ -186,7 +186,7 @@ var Checklist =
func(dev, pg, mi) { dev.selectPage(pg.getMFD().getPage("NavigationMap")); },
);
pg.addMenuItem(11, "EMERGENCY", pg,
pg.addMenuItem(11, "EMERGCY", pg,
func(dev, pg, mi) { pg.getController().selectEmergencyChecklist(); }, # callback
);

View file

@ -90,7 +90,7 @@ var ChecklistController =
},
selectEmergencyChecklist : func() {
if (me._checklist == nil) return;
if (me._checklists == nil) return;
# Select the EMERGENCY checklist group, if available.
var emergency_labels = ["EMERGENCY", "Emergency", "emergency"];
var group = nil;

View file

@ -112,7 +112,7 @@ var NavigationMap =
pg.addMenuItem(2, "MAP", pg, pg.mfd.NavigationMap.mapMenu);
pg.addMenuItem(8, "DCLTR", pg, func(dev, pg, mi) { pg.mfd.NavigationMap.MFDMap.incrDCLTR(dev, mi); } );
#pg.addMenuItem(9, "SHW CHRT", pg); # Optional
#pg.addMenuItem(10, "CHKLIST", pg); # Optional
pg.addMenuItem(10, "CHKLIST", pg, func(dev, pg, mi) { pg.mfd.Surround.goToPage("LstPageGroup", "Checklist"); }); # Optional
device.updateMenus();
},