1
0
Fork 0

Initial nasal setup for canvas QNH

This commit is contained in:
legoboyvdlp R 2020-08-28 15:40:33 +01:00
parent 5c0ee999ee
commit 221eec42d7
2 changed files with 42 additions and 0 deletions

View file

@ -4337,6 +4337,9 @@
<canvas_mcdu>
<file>Aircraft/A320-family/Models/Instruments/MCDU/MCDU.nas</file>
</canvas_mcdu>
<canvas_qnh>
<file>Aircraft/A320-family/Nasal/Displays/CanvasQNH.nas</file>
</canvas_qnh>
<mcdu_scratchpad> <!-- delay till after canvas mcdu -->
<file>Aircraft/A320-family/Nasal/FMGC/mcdu-messages.nas</file>
</mcdu_scratchpad>

View file

@ -0,0 +1,39 @@
# A3XX Canvas QNH
# Jonathan Redpath (legoboyvdlp)
# Copyright (c) 2020 Jonathan Redpath (legoboyvdlp)
var QNH1 = nil;
var QNH2 = nil;
var QNHCanvasParent = {
canvasQNH: nil,
qnhGroup: nil,
line1: nil,
new: func(placement, tex) {
var QNHCanvas = {parents: [QNHCanvasParent]};
QNHCanvas.canvasQNH = canvas.new({
"name": "QNH1",
"size": [256, 128],
"view": [256, 128],
"mipmapping": 0
});
QNHCanvas.canvasQNH.addPlacement({"node": placement, "texture": tex});
QNHCanvas.canvasQNH.setColorBackground(0.01, 0.075, 0.00, 1.00);
QNHCanvas.qnhGroup = QNHCanvas.canvasQNH.createGroup();
QNHCanvas.qnhGroup.show();
QNHCanvas.line1 = QNHCanvas.qnhGroup.createChild("text")
.setFontSize(13, 1)
.setColor([0.45,0.98,0.06])
.setAlignment("left-bottom-baseline")
.setFont("led.txf")
.setText("8888");
return QNHCanvas;
},
};
if (QNH1 == nil) {
# QNH1 = QNHCanvasParent.new("efis_foil_display", "glare_sw.png");
}