From a81620276ed74afc4fb0e78f7717e1018f055549 Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Thu, 5 Oct 2017 13:09:50 -0400 Subject: [PATCH] A32X: Save suprise --- A320-main.xml | 1 + AircraftConfig/acconfig.nas | 4 ++-- Models/FlightDeck/a320.flightdeck.xml | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/A320-main.xml b/A320-main.xml index 34f9a5f1..ee6b6ed0 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -592,6 +592,7 @@ 0 0 + 0 diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index 303252b9..cab96cdd 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -99,7 +99,7 @@ var error_mismatch = gui.Dialog.new("sim/gui/dialogs/acconfig/error/mismatch/dia spinning.start(); init_dlg.open(); -http.load("https://raw.githubusercontent.com/it0uchpods/A320Family/master/revision.txt").done(func(r) setprop("/systems/acconfig/new-revision", r.response)); +http.load("https://raw.githubusercontent.com/it0uchpods/IDG-A32X/master/revision.txt").done(func(r) setprop("/systems/acconfig/new-revision", r.response)); var revisionFile = (getprop("/sim/aircraft-dir")~"/revision.txt"); var current_revision = io.readfile(revisionFile); @@ -143,7 +143,7 @@ setlistener("/sim/signals/fdm-initialized", func { }); var saveSettings = func { - aircraft.data.add("/options/system/keyboard-mode", "/controls/adirs/skip"); + aircraft.data.add("/options/system/keyboard-mode", "/controls/adirs/skip", "/controls/tray/surprise"); aircraft.data.save(); } diff --git a/Models/FlightDeck/a320.flightdeck.xml b/Models/FlightDeck/a320.flightdeck.xml index a99736ad..aa2393ae 100644 --- a/Models/FlightDeck/a320.flightdeck.xml +++ b/Models/FlightDeck/a320.flightdeck.xml @@ -5845,6 +5845,12 @@ property-toggle controls/tray/surprise + + nasal + +