From 0c5be65001111d149f313607e8fc20d551bd7f3b Mon Sep 17 00:00:00 2001 From: Josh Davidson Date: Sun, 24 Mar 2019 00:02:51 -0400 Subject: [PATCH] Sim: Now ACCONFIG saves autopush prefs --- AircraftConfig/acconfig.nas | 7 +++++++ gui/dialogs/autopush.xml | 8 ++++++++ revision.txt | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/AircraftConfig/acconfig.nas b/AircraftConfig/acconfig.nas index fb4f30a8..ba269095 100644 --- a/AircraftConfig/acconfig.nas +++ b/AircraftConfig/acconfig.nas @@ -94,6 +94,8 @@ setprop("/systems/acconfig/options/nd-rate", 1); setprop("/systems/acconfig/options/uecam-rate", 1); setprop("/systems/acconfig/options/lecam-rate", 1); setprop("/systems/acconfig/options/iesi-rate", 1); +setprop("/systems/acconfig/options/autopush/show-route", 1); +setprop("/systems/acconfig/options/autopush/show-wingtip", 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"); @@ -215,12 +217,17 @@ var readSettings = func { setprop("/options/system/keyboard-mode", getprop("/systems/acconfig/options/keyboard-mode")); setprop("/options/system/laptop-mode", getprop("/systems/acconfig/options/laptop-mode")); setprop("/controls/adirs/skip", getprop("/systems/acconfig/options/adirs-skip")); + setprop("/sim/model/autopush/route/show", getprop("/systems/acconfig/options/autopush/show-route")); + setprop("/sim/model/autopush/route/show-wingtip", getprop("/systems/acconfig/options/autopush/show-wingtip")); + } var writeSettings = func { setprop("/systems/acconfig/options/keyboard-mode", getprop("/options/system/keyboard-mode")); setprop("/systems/acconfig/options/laptop-mode", getprop("/options/system/laptop-mode")); setprop("/systems/acconfig/options/adirs-skip", getprop("/controls/adirs/skip")); + setprop("/systems/acconfig/options/autopush/show-route", getprop("/sim/model/autopush/route/show")); + setprop("/systems/acconfig/options/autopush/show-wingtip", getprop("/sim/model/autopush/route/show-wingtip")); io.write_properties(getprop("/sim/fg-home") ~ "/Export/IDG-A32X-config.xml", "/systems/acconfig/options"); } diff --git a/gui/dialogs/autopush.xml b/gui/dialogs/autopush.xml index 2e6974d3..c5a5368b 100644 --- a/gui/dialogs/autopush.xml +++ b/gui/dialogs/autopush.xml @@ -292,6 +292,10 @@ Distribute under the terms of GPLv2. dialog-apply + + nasal + + @@ -335,6 +339,10 @@ Distribute under the terms of GPLv2. dialog-apply + + nasal + + diff --git a/revision.txt b/revision.txt index 524509f8..0c62d1b2 100644 --- a/revision.txt +++ b/revision.txt @@ -1 +1 @@ -4786 \ No newline at end of file +4787 \ No newline at end of file