From 8484e84af19716c351e625544562a103cf7367f6 Mon Sep 17 00:00:00 2001 From: Jonathan Redpath Date: Thu, 5 Oct 2017 18:04:47 +0100 Subject: [PATCH] Add surprise to ACCONFIG. --- AircraftConfig/acconfig.nas | 4 ++++ Models/FlightDeck/a320.flightdeck.xml | 4 ++-- Nasal/libraries.nas | 3 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index 303252b9..2704aae8 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -85,6 +85,10 @@ setprop("/systems/acconfig/new-revision", ""); setprop("/systems/acconfig/out-of-date", 0); setprop("/systems/acconfig/mismatch-code", "0x000"); setprop("/systems/acconfig/mismatch-reason", "XX"); + +# Surprise +setprop("/systems/acconfig/surprise", 1); + var main_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/main/dialog", "Aircraft/IDG-A32X/AircraftConfig/main.xml"); var welcome_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/welcome/dialog", "Aircraft/IDG-A32X/AircraftConfig/welcome.xml"); var ps_load_dlg = gui.Dialog.new("sim/gui/dialogs/acconfig/psload/dialog", "Aircraft/IDG-A32X/AircraftConfig/psload.xml"); diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index a99736ad..334f719d 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -5825,7 +5825,7 @@ - controls/tray/surprise + systems/acconfig/surprise 1 @@ -5843,7 +5843,7 @@ property-toggle - controls/tray/surprise + systems/acconfig/surprise diff --git a/Nasal/libraries.nas b/Nasal/libraries.nas index 779872a4..6b856cb5 100644 --- a/Nasal/libraries.nas +++ b/Nasal/libraries.nas @@ -14,9 +14,6 @@ setprop("/controls/lighting/ndl-norm", 1); setprop("/controls/lighting/ndr-norm", 1); setprop("/controls/lighting/upper-norm", 1); -# Surprise -setprop("/controls/tray/surprise", 1); - # Lights setprop("/sim/model/lights/nose-lights", 0); setprop("/sim/model/lights/turnoffsw", 0);