Switch GUI to use new reposition command.
(Must have latest FG or you'll get a crash due to old ATIS subsystem)
This commit is contained in:
parent
b388691fc2
commit
2e451f292f
6 changed files with 7 additions and 7 deletions
|
@ -1002,7 +1002,7 @@ var teleport = func(airport = "", runway = "", lat = -9999, lon = -9999, alt = 0
|
|||
setprop("/sim/presets/offset-azimuth-nm", azimuth);
|
||||
setprop("/sim/presets/glideslope-deg", glideslope);
|
||||
setprop("/sim/presets/heading-deg", heading);
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -597,7 +597,7 @@ var load_flight_sel = nil;
|
|||
var load_flight = func {
|
||||
var load = func(n) {
|
||||
fgcommand("load", props.Node.new({ file: n.getValue() }));
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
}
|
||||
if (load_flight_sel == nil)
|
||||
load_flight_sel = FileSelector.new(load, "Load Flight", "Load",
|
||||
|
|
|
@ -85,7 +85,7 @@ var startTutorial = func {
|
|||
var presets = tutorialN.getChild("presets");
|
||||
if (presets != nil) {
|
||||
props.copy(presets, props.globals.getNode("/sim/presets"));
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
|
||||
if (getprop("/sim/presets/on-ground")) {
|
||||
var eng = props.globals.getNode("/controls/engines");
|
||||
|
@ -104,7 +104,7 @@ var startTutorial = func {
|
|||
|
||||
# <init>
|
||||
do_group(tutorialN.getNode("init"));
|
||||
is_running(1); # needs to be after "presets-commit"
|
||||
is_running(1); # needs to be after "reposition"
|
||||
display.clear();
|
||||
display.show();
|
||||
|
||||
|
|
|
@ -1434,7 +1434,7 @@
|
|||
<script>apply()</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>presets-commit</command>
|
||||
<command>reposition</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>dialog-close</command>
|
||||
|
|
|
@ -363,7 +363,7 @@
|
|||
</script>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>presets-commit</command>
|
||||
<command>reposition</command>
|
||||
</binding>
|
||||
<binding>
|
||||
<command>nasal</command>
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
var teleport = func(lat, lon) {
|
||||
setprop("/sim/presets/latitude-deg", lat);
|
||||
setprop("/sim/presets/longitude-deg", lon);
|
||||
fgcommand("presets-commit");
|
||||
fgcommand("reposition");
|
||||
}
|
||||
|
||||
var on_water = func(lat, lon) {
|
||||
|
|
Loading…
Reference in a new issue