Merge branch 'ecam' of https://www.github.com/it0uchpods/IDG-A32X into ecam
This commit is contained in:
commit
baa85a5b3f
3 changed files with 9 additions and 2 deletions
|
@ -592,6 +592,7 @@
|
||||||
<tray n="0">
|
<tray n="0">
|
||||||
<lefttrayext type="double">0</lefttrayext>
|
<lefttrayext type="double">0</lefttrayext>
|
||||||
<righttrayext type="double">0</righttrayext>
|
<righttrayext type="double">0</righttrayext>
|
||||||
|
<suprise userarchive="y" type="bool">0</suprise>
|
||||||
</tray>
|
</tray>
|
||||||
</controls>
|
</controls>
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ var error_mismatch = gui.Dialog.new("sim/gui/dialogs/acconfig/error/mismatch/dia
|
||||||
spinning.start();
|
spinning.start();
|
||||||
init_dlg.open();
|
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 revisionFile = (getprop("/sim/aircraft-dir")~"/revision.txt");
|
||||||
var current_revision = io.readfile(revisionFile);
|
var current_revision = io.readfile(revisionFile);
|
||||||
|
|
||||||
|
@ -143,7 +143,7 @@ setlistener("/sim/signals/fdm-initialized", func {
|
||||||
});
|
});
|
||||||
|
|
||||||
var saveSettings = 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();
|
aircraft.data.save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5845,6 +5845,12 @@
|
||||||
<command>property-toggle</command>
|
<command>property-toggle</command>
|
||||||
<property>controls/tray/surprise</property>
|
<property>controls/tray/surprise</property>
|
||||||
</binding>
|
</binding>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>
|
||||||
|
acconfig.saveSettings();
|
||||||
|
</script>
|
||||||
|
</binding>
|
||||||
</action>
|
</action>
|
||||||
</animation>
|
</animation>
|
||||||
|
|
||||||
|
|
Reference in a new issue