diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas
index f20d49d6..18e911f1 100644
--- a/AircraftConfig/acconfig.nas
+++ b/AircraftConfig/acconfig.nas
@@ -80,6 +80,7 @@ setprop("/systems/acconfig/options/wxr-server", "noaa");
setprop("/systems/acconfig/options/welcome-skip", 0);
setprop("/systems/acconfig/options/no-rendering-warn", 0);
setprop("/systems/acconfig/options/save-state", 0);
+setprop("/systems/acconfig/options/hide-canvas-outside", 0);
setprop("/systems/acconfig/options/seperate-tiller-axis", 0);
setprop("/systems/acconfig/options/pfd-rate", 1);
setprop("/systems/acconfig/options/nd-rate", 1);
@@ -235,6 +236,7 @@ var readSettings = func {
setprop("/FMGC/simbrief-username", getprop("/systems/acconfig/options/simbrief-username"));
setprop("/systems/atsu/atis-server", getprop("/systems/acconfig/options/atis-server"));
setprop("/systems/atsu/wxr-server", getprop("/systems/acconfig/options/wxr-server"));
+ setprop("/options/hide-canvas-outside", getprop("/systems/acconfig/options/hide-canvas-outside"));
}
var writeSettings = func {
@@ -249,6 +251,7 @@ var writeSettings = func {
setprop("/systems/acconfig/options/simbrief-username", getprop("/FMGC/simbrief-username"));
setprop("/systems/acconfig/options/atis-server", getprop("/systems/atsu/atis-server"));
setprop("/systems/acconfig/options/wxr-server", getprop("/systems/atsu/wxr-server"));
+ setprop("/systems/acconfig/options/hide-canvas-outside", getprop("/options/hide-canvas-outside"));
io.write_properties(getprop("/sim/fg-home") ~ "/Export/A320-family-config.xml", "/systems/acconfig/options");
}
diff --git a/AircraftConfig/main.xml b/AircraftConfig/main.xml
index c97e3d27..618a2c61 100644
--- a/AircraftConfig/main.xml
+++ b/AircraftConfig/main.xml
@@ -343,6 +343,26 @@
true
+
+
+ left
+ /systems/acconfig/options/hide-canvas-outside
+
+ property-toggle
+ options/hide-canvas-outside
+
+
+ dialog-apply
+
+
+ nasal
+
+
+ true
+
+
diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml
index db1429cd..e13b3af1 100644
--- a/Models/FlightDeck/a320.flightdeck.xml
+++ b/Models/FlightDeck/a320.flightdeck.xml
@@ -981,7 +981,10 @@
dcduScreenL
dcduScreenR
- sim/current-view/internal
+
+ options/hide-canvas-outside
+ sim/current-view/internal
+
diff --git a/Nasal/Libraries/libraries.nas b/Nasal/Libraries/libraries.nas
index 05e68f73..37b5f770 100644
--- a/Nasal/Libraries/libraries.nas
+++ b/Nasal/Libraries/libraries.nas
@@ -378,9 +378,10 @@ foreach (var name; keys(input)) {
emesary.GlobalTransmitter.NotifyAll(notifications.FrameNotificationAddProperty.new("A320 Libraries", name, input[name]));
}
+var hideCanvas = props.globals.getNode("/options/hide-canvas-outside");
var internal = props.globals.getNode("/sim/current-view/internal");
var toggleScreen = func() {
- if (!internal.getValue()) {
+ if (!internal.getValue() and hideCanvas.getValue()) {
canvas_pfd.PFD_update.stop();
canvas_ecam.lowerECAM_update.stop();
canvas_nd.nd_update.stop();
@@ -395,6 +396,10 @@ var toggleScreen = func() {
}
};
+setlistener("/options/hide-canvas-outside", func() {
+ toggleScreen();
+}, 0, 0);
+
setlistener("/sim/current-view/internal", func() {
toggleScreen();
}, 0, 0);