1
0
Fork 0

Add new font from MSFS2020 FBW team (GPL)

This commit is contained in:
Jonathan Redpath 2021-12-05 17:45:26 +00:00
parent e2acf228f8
commit f2671d8f79
9 changed files with 80 additions and 96 deletions

BIN
Fonts/ECAMFontRegular.ttf Normal file

Binary file not shown.

View file

@ -25,7 +25,7 @@ var canvas_IESI = {
obj.group = obj.canvas.createGroup();
obj.font_mapper = func(family, weight) {
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
};
canvas.parsesvg(obj.group, svg, {"font-mapper": obj.font_mapper} );

View file

@ -25,7 +25,7 @@ var canvas_lowerECAM_base =
me.canvas.addPlacement({"node": "uecam.screen2"});
me.font_mapper = func(family, weight) {
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
};
me.test = me.canvas.createGroup();

View file

@ -69,7 +69,7 @@ var myCockpit_switches = {
var canvas_nd_base = {
init: func(canvas_group, file = nil) {
var font_mapper = func(family, weight) {
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
};
if (file != nil) {
@ -264,7 +264,7 @@ var canvas_ND_2 = {
var canvas_ND_1_test = {
init: func(canvas_group, file) {
var font_mapper = func(family, weight) {
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
};
canvas.parsesvg(canvas_group, file, {"font-mapper": font_mapper});
@ -306,7 +306,7 @@ var canvas_ND_1_test = {
var canvas_ND_2_test = {
init: func(canvas_group, file) {
var font_mapper = func(family, weight) {
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
};
canvas.parsesvg(canvas_group, file, {"font-mapper": font_mapper});

View file

@ -20,8 +20,7 @@ var RED = [1.0000,0.0000,0.0000];
canvas.NDStyles["Airbus"] = {
font_mapper: func(family, weight) {
if( family == "Liberation Sans" and weight == "normal" )
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
},
# where all the symbols are stored

View file

@ -100,7 +100,7 @@ var canvas_pfd = {
obj.mismatch = obj.canvas.createGroup();
obj.font_mapper = func(family, weight) {
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
};
canvas.parsesvg(obj.group, svg, {"font-mapper": obj.font_mapper} );

View file

@ -48,7 +48,7 @@ var canvas_upperECAM = {
obj.typeString = type;
obj.font_mapper = func(family, weight) {
return "LiberationFonts/LiberationSans-Regular.ttf";
return "ECAMFontRegular.ttf";
};
canvas.parsesvg(obj.group, svg, {"font-mapper": obj.font_mapper} );
@ -440,23 +440,6 @@ var canvas_upperECAM = {
obj.createListenerForLine("/ECAM/rightmsg/linec7", ECAM_line7rc, "ECAMR7");
obj.createListenerForLine("/ECAM/rightmsg/linec8", ECAM_line8rc, "ECAMR8");
obj["ECAML1"].setFont("LiberationMonoCustom.ttf");
obj["ECAML2"].setFont("LiberationMonoCustom.ttf");
obj["ECAML3"].setFont("LiberationMonoCustom.ttf");
obj["ECAML4"].setFont("LiberationMonoCustom.ttf");
obj["ECAML5"].setFont("LiberationMonoCustom.ttf");
obj["ECAML6"].setFont("LiberationMonoCustom.ttf");
obj["ECAML7"].setFont("LiberationMonoCustom.ttf");
obj["ECAML8"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR1"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR2"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR3"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR4"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR5"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR6"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR7"].setFont("LiberationMonoCustom.ttf");
obj["ECAMR8"].setFont("LiberationMonoCustom.ttf");
# cache
obj._cachedN1 = [nil, nil];
obj._cachedN2 = [nil, nil];

View file

@ -47,12 +47,12 @@ var warnings = std.Vector.new([
var eng1FireFlAgent1Timer = warning.new(msg: " -AGENT 1 AFT 10 S.DISCH", colour: "w"),
var eng1FireFlAgent1 = warning.new(msg: " -AGENT 1..........DISCH", colour: "c"),
var eng1FireFlATC = warning.new(msg: " -ATC.............NOTIFY", colour: "c"),
var eng1FireFl30Sec = warning.new(msg: " IF FIRE AFTER 30 S:", colour: "w"),
var eng1FireFl30Sec = warning.new(msg: " .IF FIRE AFTER 30 S:", colour: "w"),
var eng1FireFlAgent2 = warning.new(msg: " -AGENT 2..........DISCH", colour: "c"),
# ENG 1 FIRE (ground)
var eng1FireGnlever = warning.new(msg: " -THR LEVERS........IDLE", colour: "c"),
var eng1FireGnstopped = warning.new(msg: " WHEN A/C IS STOPPED:", colour: "w"),
var eng1FireGnstopped = warning.new(msg: " .WHEN A/C IS STOPPED:", colour: "w"),
var eng1FireGnparkbrk = warning.new(msg: " -PARKING BRK.........ON", colour: "c"),
var eng1FireGnATC = warning.new(msg: " -ATC.............NOTIFY", colour: "c"),
var eng1FireGncrew = warning.new(msg: " -CABIN CREW.......ALERT", colour: "c"),
@ -70,12 +70,12 @@ var warnings = std.Vector.new([
var eng2FireFlAgent1Timer = warning.new(msg: " -AGENT 1 AFT 10 S.DISCH", colour: "w"),
var eng2FireFlAgent1 = warning.new(msg: " -AGENT 1..........DISCH", colour: "c"),
var eng2FireFlATC = warning.new(msg: " -ATC.............NOTIFY", colour: "c"),
var eng2FireFl30Sec = warning.new(msg: " IF FIRE AFTER 30 S:", colour: "w"),
var eng2FireFl30Sec = warning.new(msg: " .IF FIRE AFTER 30 S:", colour: "w"),
var eng2FireFlAgent2 = warning.new(msg: " -AGENT 2..........DISCH", colour: "c"),
# ENG 2 FIRE (ground)
var eng2FireGnlever = warning.new(msg: " -THR LEVERS........IDLE", colour: "c"),
var eng2FireGnstopped = warning.new(msg: " WHEN A/C IS STOPPED:", colour: "w"),
var eng2FireGnstopped = warning.new(msg: " .WHEN A/C IS STOPPED:", colour: "w"),
var eng2FireGnparkbrk = warning.new(msg: " -PARKING BRK.........ON", colour: "c"),
var eng2FireGnATC = warning.new(msg: " -ATC.............NOTIFY", colour: "c"),
var eng2FireGncrew = warning.new(msg: " -CABIN CREW.......ALERT", colour: "c"),
@ -94,7 +94,7 @@ var warnings = std.Vector.new([
var ADR123FaultBUSSF = warning.new(msg: " -FO BKUP SPD/ALT.....ON", colour: "c"),
var ADR123FaultADRPB = warning.new(msg: " -ADR 1+2+3 P/B......OFF", colour: "c"),
var ADR123FaultSPD = warning.new(msg: " -SPD......FLY THE GREEN", colour: "c"),
var ADR123FaultAOADISAG = warning.new(msg: " IF AOA DISAGREE: ", colour: "w"),
var ADR123FaultAOADISAG = warning.new(msg: " .IF AOA DISAGREE: ", colour: "w"),
var ADR123FaultBUSSINOP = warning.new(msg: " BKUP SPD/ALT.DO NOT USE", colour: "c"),
var ADR123FaultSTBY = warning.new(msg: " -STBY INST.MAY BE UNREL", colour: "c"),
var ADR123FaultPROC = warning.new(msg: " -ALL ADR OFF PROC.APPLY", colour: "c"),
@ -123,7 +123,7 @@ var warnings = std.Vector.new([
var excessCabAlt = warning.new(msg: "CAB PR EXCESS CAB ALT", colour: "r", aural: 0, light: 0, isMainMsg: 1),
var excessCabAltMask = warning.new(msg: " -CREW OXY MASKS.....USE", colour: "c"),
var excessCabAltSigns = warning.new(msg: " -SIGNS...............ON", colour: "c"),
var excessCabAltEmerD = warning.new(msg: " EMER DESCENT:", colour: "w"),
var excessCabAltEmerD = warning.new(msg: " .EMER DESCENT:", colour: "w"),
var excessCabAltDES = warning.new(msg: " -DESCENT.......INITIATE", colour: "c"),
var excessCabAltTHRLVR = warning.new(msg: " -THR LEVERS........IDLE", colour: "c"),
var excessCabAltSPDBRK = warning.new(msg: " -SPD BRK...........FULL", colour: "c"),
@ -133,20 +133,20 @@ var warnings = std.Vector.new([
var excessCabAltPA = warning.new(msg: " -EMER DES (PA).ANNOUNCE", colour: "c"),
var excessCabAltXPDR = warning.new(msg: " -XPDR 7700.....CONSIDER", colour: "c"),
var excessCabAltMEA = warning.new(msg: " MAX FL.....100/MEA-MORA", colour: "c"),
var excessCabAltCabAlt = warning.new(msg: " IF CAB ALT>14000 FT:", colour: "w"),
var excessCabAltCabAlt = warning.new(msg: " .IF CAB ALT>14000 FT:", colour: "w"),
var excessCabAltMasks = warning.new(msg: " -PAX OXY MASKS...MAN ON", colour: "c"),
# ENG 1 OIL LO PR
var eng1OilLoPr = warning.new(msg: "ENG 1 OIL LO PR ", colour: "r", aural: 0, light: 0, isMainMsg: 1),
var eng1OilLoPrIf = warning.new(msg: " IF OIL PR < 13 PSI :", colour: "w"),
var eng1OilLoPrIf2 = warning.new(msg: " IF OIL PR < 60 PSI :", colour: "w"),
var eng1OilLoPrIf = warning.new(msg: " .IF OIL PR < 13 PSI :", colour: "w"),
var eng1OilLoPrIf2 = warning.new(msg: " .IF OIL PR < 60 PSI :", colour: "w"),
var eng1OilLoPrThrot = warning.new(msg: " -THR LEVER 1.......IDLE", colour: "c"),
var eng1OilLoPrMaster = warning.new(msg: " -ENG MASTER 1.......OFF", colour: "c"),
# ENG 2 OIL LO PR
var eng2OilLoPr = warning.new(msg: "ENG 2 OIL LO PR ", colour: "r", aural: 0, light: 0, isMainMsg: 1),
var eng2OilLoPrIf = warning.new(msg: " IF OIL PR < 13 PSI :", colour: "w"),
var eng2OilLoPrIf2 = warning.new(msg: " IF OIL PR < 60 PSI :", colour: "w"),
var eng2OilLoPrIf = warning.new(msg: " .IF OIL PR < 13 PSI :", colour: "w"),
var eng2OilLoPrIf2 = warning.new(msg: " .IF OIL PR < 60 PSI :", colour: "w"),
var eng2OilLoPrThrot = warning.new(msg: " -THR LEVER 2.......IDLE", colour: "c"),
var eng2OilLoPrMaster = warning.new(msg: " -ENG MASTER 2.......OFF", colour: "c"),
@ -161,7 +161,7 @@ var warnings = std.Vector.new([
var gearNotDownLocked = warning.new(msg: "L/G GEAR NOT DOWNLOCKED", colour: "r", aural: 0, light: 0, isMainMsg: 1),
var gearNotDownLockedRec = warning.new(msg: " -L/G LEVER......RECYCLE", colour: "c"),
var gearNotDownLockedWork = warning.new(msg: " IF UNSUCCESSFUL:", colour: "w"),
var gearNotDownLockedWork = warning.new(msg: " .IF UNSUCCESSFUL:", colour: "w"),
var gearNotDownLocked120 = warning.new(msg: " AFTER 120S:", colour: "w"),
var gearNotDownLockedGrav = warning.new(msg: " -L/G.........GRVTY EXTN", colour: "c"),
@ -171,16 +171,16 @@ var warnings = std.Vector.new([
# Cargo smoke
var cargoSmokeFwd = warning.new(msg: "SMOKE FWD CARGO SMOKE", colour: "r", aural: 0, light: 0, isMainMsg: 1),
var cargoSmokeFwdFans = warning.new(msg: " -CAB FANS...........OFF", colour: "c"),
var cargoSmokeFwdGrdClsd = warning.new(msg: " IF FWD CRG CLSD:", colour: "w"),
var cargoSmokeFwdGrdClsd = warning.new(msg: " .IF FWD CRG CLSD:", colour: "w"),
var cargoSmokeFwdAgent = warning.new(msg: " -AGENT............DISCH", colour: "c"),
var cargoSmokeFwdGrd = warning.new(msg: " WHEN ON GROUND", colour: "w"),
var cargoSmokeFwdGrd = warning.new(msg: " .WHEN ON GROUND", colour: "w"),
var cargoSmokeFwdDoors = warning.new(msg: " BEFORE OPEN CRG DOORS:", colour: "w"),
var cargoSmokeFwdDisemb = warning.new(msg: "-PAX..........DISEMBARK", colour: "c"),
var cargoSmokeAft = warning.new(msg: "SMOKE AFT CARGO SMOKE", colour: "r", aural: 0, light: 0, isMainMsg: 1),
var cargoSmokeAftFans = warning.new(msg: " -CAB FANS...........OFF", colour: "c"),
var cargoSmokeAftGrdClsd = warning.new(msg: " IF AFT CRG CLSD:", colour: "w"),
var cargoSmokeAftGrdClsd = warning.new(msg: " .IF AFT CRG CLSD:", colour: "w"),
var cargoSmokeAftAgent = warning.new(msg: " -AGENT............DISCH", colour: "c"),
var cargoSmokeAftGrd = warning.new(msg: " WHEN ON GROUND", colour: "w"),
var cargoSmokeAftGrd = warning.new(msg: " .WHEN ON GROUND", colour: "w"),
var cargoSmokeAftDoors = warning.new(msg: " BEFORE OPEN CRG DOORS:", colour: "w"),
var cargoSmokeAftDisemb = warning.new(msg: "-PAX..........DISEMBARK", colour: "c"),
@ -203,7 +203,7 @@ var warnings = std.Vector.new([
var emerconfig = warning.new(msg: "ELEC EMER CONFIG", colour: "r", aural: 0, light: 0, isMainMsg: 1),
var emerconfigMinRat = warning.new(msg: " MIN RAT SPD......140 KT", colour: "c"),
var emerconfigGen = warning.new(msg: " -GEN 1+2....OFF THEN ON", colour: "c"),
var emerconfigGen2 = warning.new(msg: " IF UNSUCCESSFUL :", colour: "w"),
var emerconfigGen2 = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "w"),
var emerconfigBusTie = warning.new(msg: " -BUS TIE............OFF", colour: "c"),
var emerconfigGen3 = warning.new(msg: " -GEN 1+2....OFF THEN ON", colour: "c"),
var emerconfigManOn = warning.new(msg: " -EMER ELEC PWR...MAN ON", colour: "c"),
@ -272,7 +272,7 @@ var warnings = std.Vector.new([
var shaftFailure1 = warning.new(msg: " SHAFT FAILURE ", colour: "a"),
var eng1FailModeSel = warning.new(msg: " -ENG MODE SEL.......IGN", colour: "c"),
var eng1FailThrLvrIdle = warning.new(msg: " -THR LEVER 1.......IDLE", colour: "c"),
var eng1FailNoRelight = warning.new(msg: "IF NO RELIGHT AFTER 30S", colour: "w"),
var eng1FailNoRelight = warning.new(msg: ".IF NO RELIGHT AFTER 30S", colour: "w"),
var eng1FailMasterOff = warning.new(msg: " -ENG MASTER 1.......OFF", colour: "c"),
var eng1FailDamage = warning.new(msg: " IF DAMAGE : ", colour: "w"),
var eng1FailFirePB = warning.new(msg: " -ENG 1 FIRE P/B....PUSH", colour: "c"),
@ -284,7 +284,7 @@ var warnings = std.Vector.new([
# ENG 1 OIL HI TEMP
var eng1OilHiTemp = warning.new(msg: "ENG 1 OIL HI TEMP ", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var eng1OilHiTempIdle = warning.new(msg: " -THR LEVER 1.......IDLE", colour: "c"),
var eng1OilHiTempSuccess = warning.new(msg: " IF UNSUCCESSFUL: ", colour: "w"),
var eng1OilHiTempSuccess = warning.new(msg: " .IF UNSUCCESSFUL: ", colour: "w"),
var eng1OilHiTempMaster = warning.new(msg: " -ENG MASTER 1.......OFF", colour: "c"),
# ENG 1 SHUT DOWN
@ -292,10 +292,10 @@ var warnings = std.Vector.new([
var eng1ShutDownPack = warning.new(msg: " -PACK 1.............OFF", colour: "c"),
var eng1ShutDownXBleed = warning.new(msg: " -X BLEED...........OPEN", colour: "c"),
var eng1ShutDownModeSel = warning.new(msg: " -ENG MODE SEL.......IGN", colour: "c"),
var eng1ShutDownFuelLeak = warning.new(msg: " IF NO FUEL LEAK :", colour: "w"),
var eng1ShutDownFuelLeak = warning.new(msg: " .IF NO FUEL LEAK :", colour: "w"),
var eng1ShutDownImbalance = warning.new(msg: " -IMBALANCE......MONITOR", colour: "c"),
var eng1ShutDownTCAS = warning.new(msg: " -TCAS MODE SEL.......TA", colour: "c"),
var eng1ShutDownBuffet = warning.new(msg: " IF BUFFET : ", colour: "w"),
var eng1ShutDownBuffet = warning.new(msg: " .IF BUFFET : ", colour: "w"),
var eng1ShutDownSpeed = warning.new(msg: " MAX SPEED...........240", colour: "c"),
var eng1ShutDownXBleedS = warning.new(msg: " -X BLEED...........SHUT", colour: "c"),
var eng1ShutDownWingAI = warning.new(msg: " -WING ANTI ICE......OFF", colour: "c"),
@ -307,7 +307,7 @@ var warnings = std.Vector.new([
var shaftFailure2 = warning.new(msg: " SHAFT FAILURE ", colour: "a"),
var eng2FailModeSel = warning.new(msg: " -ENG MODE SEL.......IGN", colour: "c"),
var eng2FailThrLvrIdle = warning.new(msg: " -THR LEVER 2.......IDLE", colour: "c"),
var eng2FailNoRelight = warning.new(msg: "IF NO RELIGHT AFTER 30S", colour: "w"),
var eng2FailNoRelight = warning.new(msg: ".IF NO RELIGHT AFTER 30S", colour: "w"),
var eng2FailMasterOff = warning.new(msg: " -ENG MASTER 2.......OFF", colour: "c"),
var eng2FailDamage = warning.new(msg: " IF DAMAGE : ", colour: "w"),
var eng2FailFirePB = warning.new(msg: " -ENG 2 FIRE P/B....PUSH", colour: "c"),
@ -319,7 +319,7 @@ var warnings = std.Vector.new([
# ENG 2 OIL HI TEMP
var eng2OilHiTemp = warning.new(msg: "ENG 2 OIL HI TEMP ", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var eng2OilHiTempIdle = warning.new(msg: " -THR LEVER 2.......IDLE", colour: "c"),
var eng2OilHiTempSuccess = warning.new(msg: " IF UNSUCCESSFUL: ", colour: "w"),
var eng2OilHiTempSuccess = warning.new(msg: " .IF UNSUCCESSFUL: ", colour: "w"),
var eng2OilHiTempMaster = warning.new(msg: " -ENG MASTER 2.......OFF", colour: "c"),
# ENG 2 SHUT DOWN
@ -328,10 +328,10 @@ var warnings = std.Vector.new([
var eng2ShutDownPack = warning.new(msg: " -PACK 2.............OFF", colour: "c"),
var eng2ShutDownXBleed = warning.new(msg: " -X BLEED...........OPEN", colour: "c"),
var eng2ShutDownModeSel = warning.new(msg: " -ENG MODE SEL.......IGN", colour: "c"),
var eng2ShutDownFuelLeak = warning.new(msg: " IF NO FUEL LEAK :", colour: "w"),
var eng2ShutDownFuelLeak = warning.new(msg: " .IF NO FUEL LEAK :", colour: "w"),
var eng2ShutDownImbalance = warning.new(msg: " -IMBALANCE......MONITOR", colour: "c"),
var eng2ShutDownTCAS = warning.new(msg: " -TCAS MODE SEL.......TA", colour: "c"),
var eng2ShutDownBuffet = warning.new(msg: " IF BUFFET : ", colour: "w"),
var eng2ShutDownBuffet = warning.new(msg: " .IF BUFFET : ", colour: "w"),
var eng2ShutDownSpeed = warning.new(msg: " MAX SPEED...........240", colour: "c"),
var eng2ShutDownXBleedS = warning.new(msg: " -X BLEED...........SHUT", colour: "c"),
var eng2ShutDownWingAI = warning.new(msg: " -WING ANTI ICE......OFF", colour: "c"),
@ -449,7 +449,7 @@ var warnings = std.Vector.new([
# GEN 1 FAULT
var gen1fault = warning.new(msg: "ELEC GEN 1 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var gen1faultGen = warning.new(msg: " -GEN 1......OFF THEN ON", colour: "c"),
var gen1faultGen2 = warning.new(msg: " IF UNSUCCESSFUL :", colour: "w"),
var gen1faultGen2 = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "w"),
var gen1faultGen3 = warning.new(msg: " -GEN 1..............OFF", colour: "c"),
# ESS TR FAULT
@ -458,13 +458,13 @@ var warnings = std.Vector.new([
# GEN 2 FAULT
var gen2fault = warning.new(msg: "ELEC GEN 2 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var gen2faultGen = warning.new(msg: " -GEN 2......OFF THEN ON", colour: "c"),
var gen2faultGen2 = warning.new(msg: " IF UNSUCCESSFUL :", colour: "w"),
var gen2faultGen2 = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "w"),
var gen2faultGen3 = warning.new(msg: " -GEN 2..............OFF", colour: "c"),
# APU GEN FAULT
var apuGenfault = warning.new(msg: "ELEC APU GEN FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var apuGenfaultGen = warning.new(msg: " -APU GEN....OFF THEN ON", colour: "c"),
var apuGenfaultGen2 = warning.new(msg: " IF UNSUCCESSFUL :", colour: "w"),
var apuGenfaultGen2 = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "w"),
var apuGenfaultGen3 = warning.new(msg: " -APU GEN............OFF", colour: "c"),
# GEN OFF
@ -524,7 +524,7 @@ var warnings = std.Vector.new([
var fac12Fault = warning.new(msg: "AUTO FLT FAC 1+2 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var fac12FaultRud = warning.new(msg: "RUD WITH CARE ABV 160 KT", colour: "c"),
var fac12FaultFac = warning.new(msg: " -FAC 1+2....OFF THEN ON", colour: "c"),
var fac12FaultSuccess = warning.new(msg: " IF UNSUCCESSFUL :", colour: "w"),
var fac12FaultSuccess = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "w"),
var fac12FaultFacOff = warning.new(msg: " -FAC 1+2............OFF", colour: "c"),
var yawDamperSysFault = warning.new(msg: "AUTO FLT YAW DAMPER SYS", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var yawDamperSysFaultFac1 = warning.new(msg: " -FAC 1......OFF THEN ON", colour: "c"),
@ -536,11 +536,11 @@ var warnings = std.Vector.new([
var rudTravLimSysFaultFac = warning.new(msg: " -FAC 1+2....OFF THEN ON", colour: "c"),
var fac1Fault = warning.new(msg: "AUTO FLT FAC 1 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var fac1FaultFac = warning.new(msg: " -FAC 1......OFF THEN ON", colour: "c"),
var fac1FaultSuccess = warning.new(msg: " IF UNSUCCESSFUL :", colour: "w"),
var fac1FaultSuccess = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "w"),
var fac1FaultFacOff = warning.new(msg: " -FAC 1..............OFF", colour: "c"),
var fac2Fault = warning.new(msg: "AUTO FLT FAC 2 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var fac2FaultFac = warning.new(msg: " -FAC 2......OFF THEN ON", colour: "c"),
var fac2FaultSuccess = warning.new(msg: " IF UNSUCCESSFUL :", colour: "w"),
var fac2FaultSuccess = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "w"),
var fac2FaultFacOff = warning.new(msg: " -FAC 2..............OFF", colour: "c"),
var yawDamper1Fault = warning.new(msg: "AUTO FLT YAW DAMPER 1", colour: "a", isMainMsg: 1),
@ -567,9 +567,9 @@ var warnings = std.Vector.new([
var wingLoLvlPumpR1 = warning.new(msg: " -R TK PUMP 1.........ON", colour: "c"),
var wingLoLvlPumpR2 = warning.new(msg: " -R TK PUMP 2.........ON", colour: "c"),
var wingLoLvlPumpC2 = warning.new(msg: " -CTR TK PUMP 2.......ON", colour: "c"),
var wingLoLvlLeak = warning.new(msg: " IF NO FUEL LEAK: ", colour: "w"),
var wingLoLvlLeak = warning.new(msg: " .IF NO FUEL LEAK: ", colour: "w"),
var wingLoLvlXFeed = warning.new(msg: " -FUEL X FEED.........ON", colour: "c"),
var wingLoLvlGrav = warning.new(msg: " IF GRVTY FEED: ", colour: "w"),
var wingLoLvlGrav = warning.new(msg: " .IF GRVTY FEED: ", colour: "w"),
var wingLoLvlXFeedOff = warning.new(msg: " -FUEL X FEED........OFF", colour: "c"),
var ctrPumpsOff = warning.new(msg: "FUEL CTR TK PUMPS OFF ", colour: "a", aural: 1, light: 1, isMainMsg: 1),
@ -603,13 +603,13 @@ var warnings = std.Vector.new([
var engBleedLowTemp = warning.new(msg: "AIR ENG 1+2 BLEED LO TEMP", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var engBleedLowTempAthr = warning.new(msg: " -A/THR..............OFF", colour: "c"),
var engBleedLowTempAdv = warning.new(msg: " -THR LEVERS.....ADVANCE", colour: "c"),
var engBleedLowTempSucc = warning.new(msg: " IF UNSUCCESSFUL :", colour: "c"),
var engBleedLowTempSucc = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "c"),
var engBleedLowTempIce = warning.new(msg: " -WING A.ICE.........OFF", colour: "c"),
var engBleedLowTempIcing = warning.new(msg: " AVOID ICING CONDITIONS", colour: "c"),
var eng1BleedLowTemp = warning.new(msg: "AIR ENG 1 BLEED LO TEMP", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var eng1BleedLowTempAthr = warning.new(msg: " -A/THR..............OFF", colour: "c"),
var eng1BleedLowTempAdv = warning.new(msg: " -THR LEVER 1....ADVANCE", colour: "c"),
var eng1BleedLowTempSucc = warning.new(msg: " IF UNSUCCESSFUL :", colour: "c"),
var eng1BleedLowTempSucc = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "c"),
var eng1BleedLowTempXBld = warning.new(msg: " -X BLEED...........OPEN", colour: "c"),
var eng1BleedLowTempOff = warning.new(msg: " -ENG 1 BLEED........OFF", colour: "c"),
var eng1BleedLowTempPack = warning.new(msg: " -PACK 1.............OFF", colour: "c"),
@ -618,7 +618,7 @@ var warnings = std.Vector.new([
var eng2BleedLowTemp = warning.new(msg: "AIR ENG 2 BLEED LO TEMP", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var eng2BleedLowTempAthr = warning.new(msg: " -A/THR..............OFF", colour: "c"),
var eng2BleedLowTempAdv = warning.new(msg: " -THR LEVER 2....ADVANCE", colour: "c"),
var eng2BleedLowTempSucc = warning.new(msg: " IF UNSUCCESSFUL :", colour: "c"),
var eng2BleedLowTempSucc = warning.new(msg: " .IF UNSUCCESSFUL :", colour: "c"),
var eng2BleedLowTempXBld = warning.new(msg: " -X BLEED...........OPEN", colour: "c"),
var eng2BleedLowTempOff = warning.new(msg: " -ENG 2 BLEED........OFF", colour: "c"),
var eng2BleedLowTempPack = warning.new(msg: " -PACK 2.............OFF", colour: "c"),
@ -643,20 +643,20 @@ var warnings = std.Vector.new([
var pack12FaultPackOff1 = warning.new(msg: " -PACK 1.............OFF", colour: "c"),
var pack12FaultPackOff2 = warning.new(msg: " -PACK 2.............OFF", colour: "c"),
var pack12FaultDescend = warning.new(msg: " -DESCENT TO FL 100/MEA ", colour: "c"),
var pack12FaultDiffPr = warning.new(msg: " WHEN DIFF PR <1 PSI", colour: "w"),
var pack12FaultDiffPr = warning.new(msg: " .WHEN DIFF PR <1 PSI", colour: "w"),
var pack12FaultDiffPr2 = warning.new(msg: " AND FL BELOW 100 :", colour: "w"),
var pack12FaultRam = warning.new(msg: " -RAM AIR...........OPEN", colour: "c"),
var pack12FaultMax = warning.new(msg: " MAX FL..........100/MEA", colour: "c"),
var pack12FaultOvht = warning.new(msg: " WHEN PACK OVHT OUT:", colour: "w"),
var pack12FaultOvht = warning.new(msg: " .WHEN PACK OVHT OUT:", colour: "w"),
var pack12FaultPackOn1 = warning.new(msg: " -PACK 1..............ON", colour: "c"),
var pack12FaultPackOn2 = warning.new(msg: " -PACK 2..............ON", colour: "c"),
var pack1Ovht = warning.new(msg: "AIR PACK 1 OVHT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var pack1OvhtOff = warning.new(msg: " -PACK 1.............OFF", colour: "c"),
var pack1OvhtOut = warning.new(msg: " WHEN PACK OVHT OUT:", colour: "w"),
var pack1OvhtOut = warning.new(msg: " .WHEN PACK OVHT OUT:", colour: "w"),
var pack1OvhtPack = warning.new(msg: " -PACK 1..............ON", colour: "c"),
var pack2Ovht = warning.new(msg: "AIR PACK 2 OVHT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var pack2OvhtOff = warning.new(msg: " -PACK 2.............OFF", colour: "c"),
var pack2OvhtOut = warning.new(msg: " WHEN PACK OVHT OUT:", colour: "w"),
var pack2OvhtOut = warning.new(msg: " .WHEN PACK OVHT OUT:", colour: "w"),
var pack2OvhtPack = warning.new(msg: " -PACK 2..............ON", colour: "c"),
var pack1Fault = warning.new(msg: "AIR PACK 1 FAULT", colour: "a", aural: 1, light: 1, isMainMsg: 1),
var pack1FaultOff = warning.new(msg: " -PACK 1.............OFF", colour: "c"),
@ -778,16 +778,16 @@ var specialLines = std.Vector.new([
]);
var secondaryFailures = std.Vector.new([
var secondary_bleed = memo.new(msg: "AIR BLEED", colour: "a"), # Not yet implemented
var secondary_press = memo.new(msg: "CAB PRESS", colour: "a"), # Not yet implemented
var secondary_vent = memo.new(msg: "AVNCS VENT", colour: "a"), # Not yet implemented
var secondary_elec = memo.new(msg: "ELEC", colour: "a"), # Not yet implemented
var secondary_hyd = memo.new(msg: "HYD", colour: "a"), # Not yet implemented
var secondary_fuel = memo.new(msg: "FUEL", colour: "a"), # Not yet implemented
var secondary_cond = memo.new(msg: "AIR COND", colour: "a"), # Not yet implemented
var secondary_brake = memo.new(msg: "BRAKES", colour: "a"), # Not yet implemented
var secondary_wheel = memo.new(msg: "WHEEL", colour: "a"), # Not yet implemented
var secondary_fctl = memo.new(msg: "F/CTL", colour: "a") # Not yet implemented
var secondary_bleed = memo.new(msg: ".AIR BLEED", colour: "a"), # Not yet implemented
var secondary_press = memo.new(msg: ".CAB PRESS", colour: "a"), # Not yet implemented
var secondary_vent = memo.new(msg: ".AVNCS VENT", colour: "a"), # Not yet implemented
var secondary_elec = memo.new(msg: ".ELEC", colour: "a"), # Not yet implemented
var secondary_hyd = memo.new(msg: ".HYD", colour: "a"), # Not yet implemented
var secondary_fuel = memo.new(msg: ".FUEL", colour: "a"), # Not yet implemented
var secondary_cond = memo.new(msg: ".AIR COND", colour: "a"), # Not yet implemented
var secondary_brake = memo.new(msg: ".BRAKES", colour: "a"), # Not yet implemented
var secondary_wheel = memo.new(msg: ".WHEEL", colour: "a"), # Not yet implemented
var secondary_fctl = memo.new(msg: ".F/CTL", colour: "a") # Not yet implemented
]);
var memos = std.Vector.new([
@ -840,7 +840,7 @@ var statusLim = std.Vector.new([
var min_rat_spd = status.new(msg: "MIN RAT SPD.....140 KT", colour: "c"), # Not yet implemented
var max_spd_gear = status.new(msg: "MAX SPD........280/.67", colour: "c"), # Not yet implemented
var max_spd_rev = status.new(msg: "MAX SPD........300/.78", colour: "c"), # Not yet implemented
var buffet_rev = status.new(msg: " IF BUFFET :", colour: "w"), # Not yet implemented
var buffet_rev = status.new(msg: " .IF BUFFET :", colour: "w"), # Not yet implemented
var max_spd_rev_buf = status.new(msg: "MAX SPD.............240", colour: "c"), # Not yet implemented
var max_spd_fctl = status.new(msg: "MAX SPD........320/.77", colour: "c"), # Not yet implemented
var max_spd_fctl2 = status.new(msg: "MAX SPD.........300 KT", colour: "c"), # Not yet implemented
@ -868,50 +868,50 @@ var statusLim = std.Vector.new([
var statusApprProc = std.Vector.new([
var dual_hyd_b_g = status.new(msg: "APPR PROC DUAL HYD LO PR", colour: "r"), # Not yet implemented
var dual_hyd_b_g_2 = status.new(msg: " IF BLUE OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_g_2 = status.new(msg: " .IF BLUE OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_g_3 = status.new(msg: "-BLUE ELEC PUMP.....AUTO", colour: "c"), # Not yet implemented
var dual_hyd_b_g_4 = status.new(msg: " IF GREEN OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_g_4 = status.new(msg: " .IF GREEN OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_g_5 = status.new(msg: "-GREEN ENG 1 PUMP.....ON", colour: "c"), # Not yet implemented
var dual_hyd_b_g_6 = status.new(msg: "-PTU................AUTO", colour: "c"), # Not yet implemented
var dual_hyd_b_y = status.new(msg: "APPR PROC DUAL HYD LO PR", colour: "r"), # Not yet implemented
var dual_hyd_b_y_2 = status.new(msg: " IF BLUE OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_y_2 = status.new(msg: " .IF BLUE OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_y_3 = status.new(msg: "-BLUE ELEC PUMP.....AUTO", colour: "c"), # Not yet implemented
var dual_hyd_b_y_4 = status.new(msg: " IF YELLOW OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_y_4 = status.new(msg: " .IF YELLOW OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_y_5 = status.new(msg: "-YELLOW ENG 2 PUMP....ON", colour: "c"), # Not yet implemented
var dual_hyd_b_y_6 = status.new(msg: "-PTU................AUTO", colour: "c"), # Not yet implemented
var dual_hyd_g_y = status.new(msg: "APPR PROC DUAL HYD LO PR", colour: "r"), # Not yet implemented
var dual_hyd_g_y_2 = status.new(msg: " IF GREEN OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_g_y_2 = status.new(msg: " .IF GREEN OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_b_y_3 = status.new(msg: "-GREEN ENG 1 PUMP.....ON", colour: "c"), # Not yet implemented
var dual_hyd_g_y_4 = status.new(msg: " IF YELLOW OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_g_y_4 = status.new(msg: " .IF YELLOW OVHT OUT:", colour: "w"), # Not yet implemented
var dual_hyd_g_y_5 = status.new(msg: "-YELLOW ENG 2 PUMP....ON", colour: "c"), # Not yet implemented
var dual_hyd_g_y_6 = status.new(msg: "-PTU................AUTO", colour: "c"), # Not yet implemented
var single_hyd_b = status.new(msg: "APPR PROC HYD LO PR", colour: "a"), # Not yet implemented
var single_hyd_b_2 = status.new(msg: " IF BLUE OVHT OUT:", colour: "w"), # Not yet implemented
var single_hyd_b_2 = status.new(msg: " .IF BLUE OVHT OUT:", colour: "w"), # Not yet implemented
var single_hyd_b_3 = status.new(msg: "-BLUE ELEC PUMP.....AUTO", colour: "c"), # Not yet implemented
var single_hyd_g = status.new(msg: "APPR PROC HYD LO PR", colour: "a"), # Not yet implemented
var single_hyd_g_2 = status.new(msg: " IF GREEN OVHT OUT:", colour: "w"), # Not yet implemented
var single_hyd_g_2 = status.new(msg: " .IF GREEN OVHT OUT:", colour: "w"), # Not yet implemented
var single_hyd_g_3 = status.new(msg: "-GREEN ENG 1 PUMP.....ON", colour: "c"), # Not yet implemented
var single_hyd_g_4 = status.new(msg: "-PTU................AUTO", colour: "c"), # Not yet implemented
var single_hyd_y = status.new(msg: "APPR PROC HYD LO PR", colour: "a"), # Not yet implemented
var single_hyd_y_2 = status.new(msg: " IF YELLOW OVHT OUT:", colour: "w"), # Not yet implemented
var single_hyd_y_2 = status.new(msg: " .IF YELLOW OVHT OUT:", colour: "w"), # Not yet implemented
var single_hyd_y_3 = status.new(msg: "-YELLOW ENG 1 PUMP....ON", colour: "c"), # Not yet implemented
var single_hyd_y_4 = status.new(msg: "-PTU................AUTO", colour: "c"), # Not yet implemented
var avionics_smk = status.new(msg: "APPR PROC:", colour: "w"), # Not yet implemented
var avionics_smk_2 = status.new(msg: " BEFORE L/G EXTENSION :", colour: "w"), # Not yet implemented
var avionics_smk_2 = status.new(msg: " .BEFORE L/G EXTENSION :", colour: "w"), # Not yet implemented
var avionics_smk_2 = status.new(msg: "-GEN 2...............ON", colour: "c"), # Not yet implemented
var avionics_smk_4 = status.new(msg: "-EMER ELEC GEN1 LINE ON", colour: "c"), # Not yet implemented
var ths_stuck = status.new(msg: "APPR PROC:", colour: "w"), # Not yet implemented
var ths_stuck_2 = status.new(msg: "-FOR LDG.....USE FLAP 3", colour: "c"), # Not yet implemented
var ths_stuck_3 = status.new(msg: "-GPWS LDG FLAP 3.....ON", colour: "c"), # Not yet implemented
var ths_stuck_4 = status.new(msg: " IF MAN TRIM NOT AVAIL:", colour: "w"), # Not yet implemented
var ths_stuck_5 = status.new(msg: " WHEN CONF3 AND VAPP :", colour: "w"), # Not yet implemented
var ths_stuck_4 = status.new(msg: " .IF MAN TRIM NOT AVAIL:", colour: "w"), # Not yet implemented
var ths_stuck_5 = status.new(msg: " .WHEN CONF3 AND VAPP :", colour: "w"), # Not yet implemented
var ths_stuck_6 = status.new(msg: "-L/G.................DN", colour: "c"), # Not yet implemented
var flap_stuck = status.new(msg: "APPR PROC:", colour: "w"), # Not yet implemented
@ -928,13 +928,13 @@ var statusApprProc = std.Vector.new([
var slat_stuck_6 = status.new(msg: "-GPWS FLAP MODE.....OFF", colour: "c"), # Not yet implemented
var fctl_proc = status.new(msg: "APPR PROC:", colour: "w"), # Not yet implemented
var fctl_proc_2 = status.new(msg: " IF BUFFET:", colour: "w"), # Not yet implemented
var fctl_proc_2 = status.new(msg: " .IF BUFFET:", colour: "w"), # Not yet implemented
var fctl_proc_3 = status.new(msg: "-FOR LDG.....USE FLAP 3", colour: "c"), # Not yet implemented
var fctl_proc_4 = status.new(msg: "-GPWS LDG FLAP 3.....ON", colour: "c"), # Not yet implemented
var fctl_proc_5 = status.new(msg: "-AT 1000FT AGL:L/G...DN", colour: "c"), # Not yet implemented
var rev_unlc_proc = status.new(msg: "APPR PROC:", colour: "w"), # Not yet implemented
var rev_unlc_proc_2 = status.new(msg: " IF BUFFET:", colour: "w"), # Not yet implemented
var rev_unlc_proc_2 = status.new(msg: " .IF BUFFET:", colour: "w"), # Not yet implemented
var rev_unlc_proc_3 = status.new(msg: "-FOR LDG.....USE FLAP 3", colour: "c"), # Not yet implemented
var rev_unlc_proc_4 = status.new(msg: "-APPR SPD : VREF + 55KT", colour: "c"), # Not yet implemented
var rev_unlc_proc_5 = status.new(msg: "-APPR SPD : VREF + 60KT", colour: "c"), # Not yet implemented
@ -942,23 +942,23 @@ var statusApprProc = std.Vector.new([
var rev_unlc_proc_7 = status.new(msg: "-RUD TRIM.......5 DEG L", colour: "c"), # Not yet implemented
var rev_unlc_proc_8 = status.new(msg: "-ATHR...............OFF", colour: "c"), # Not yet implemented
var rev_unlc_proc_9 = status.new(msg: "-GPWS FLAP MODE.....OFF", colour: "c"), # Not yet implemented
var rev_unlc_proc_10 = status.new(msg: " WHEN LDG ASSURED:", colour: "w"), # Not yet implemented
var rev_unlc_proc_10 = status.new(msg: " .WHEN LDG ASSURED:", colour: "w"), # Not yet implemented
var rev_unlc_proc_11 = status.new(msg: "-L/G...............DOWN", colour: "c"), # Not yet implemented
var rev_unlc_proc_12 = status.new(msg: " AT 800FT AGL:", colour: "w"), # Not yet implemented
var rev_unlc_proc_12 = status.new(msg: " .AT 800FT AGL:", colour: "w"), # Not yet implemented
var rev_unlc_proc_13 = status.new(msg: "-TARGET SPD : VREF+40KT", colour: "c"), # Not yet implemented
var rev_unlc_proc_14 = status.new(msg: "-TARGET SPD : VREF+45KT", colour: "c"), # Not yet implemented
var thr_lvr_flt = status.new(msg: "APPR PROC THR LEVER", colour: "a"), # Not yet implemented
var thr_lvr_flt_2 = status.new(msg: "-AUTOLAND...........USE", colour: "c"), # Not yet implemented
var thr_lvr_flt_3 = status.new(msg: " IF AUTOLAND NOT USED:", colour: "w"), # Not yet implemented
var thr_lvr_flt_4 = status.new(msg: " AT 500FT AGL :", colour: "w"), # Not yet implemented
var thr_lvr_flt_3 = status.new(msg: " .IF AUTOLAND NOT USED:", colour: "w"), # Not yet implemented
var thr_lvr_flt_4 = status.new(msg: " .AT 500FT AGL :", colour: "w"), # Not yet implemented
var thr_lvr_flt_5 = status.new(msg: "-ENG MASTER 1.......OFF", colour: "c"), # Not yet implemented
var thr_lvr_flt_6 = status.new(msg: "-ENG MASTER 2.......OFF", colour: "c"), # Not yet implemented
var fuel_ctl_flt = status.new(msg: "APPR PROC FUEL CTL FAULT", colour: "a"), # Not yet implemented
var fuel_ctl_flt_2 = status.new(msg: "REV 1........DO NOT USE", colour: "w"), # Not yet implemented
var fuel_ctl_flt_3 = status.new(msg: "REV 2........DO NOT USE", colour: "w"), # Not yet implemented
var fuel_ctl_flt_4 = status.new(msg: " AFTER TOUCHDOWN:", colour: "w"), # Not yet implemented
var fuel_ctl_flt_4 = status.new(msg: " .AFTER TOUCHDOWN:", colour: "w"), # Not yet implemented
var fuel_ctl_flt_5 = status.new(msg: "-ENG MASTER 1.......OFF", colour: "c"), # Not yet implemented
var fuel_ctl_flt_6 = status.new(msg: "-ENG MASTER 2.......OFF", colour: "c") # Not yet implemented
]);

View file

@ -3,3 +3,5 @@ Immersive Design Group for the aircraft this is based on
Amanda Santos for the sound "botaodepressao", used for the overhead panel under the CC0 license:
https://freesound.org/people/amandasantos/sounds/392148/
Fly By Wire Simulations for the use of the font "ECAMFontRegular.ttf", used under the GPL license