620
430
false
1);
updateScratch();
}
var doScratchNext = func
{
var index = dlg.getNode("scratch-index").getValue();
var lastIndex = size(globals._gps_dialog_search_results) - 1;
if (index == lastIndex) return;
dlg.getNode("scratch-has-next", 1).setValue((index + 1) < lastIndex);
dlg.getNode("scratch-index").setValue(index + 1);
updateScratch();
}
# restore state from previous time the dialog was open
# default to 0 if no prior value
var curIndex = dlg.getNode("scratch-index", 1).getValue() or 0;
updateSearchResults(0, curIndex);
var slaved = props.globals.getNode("/instrumentation/nav[0]/slaved-to-gps", 1);
]]>
gps
vbox
hbox
1
GPS
1
16
16
27
2
dialog-close
table
0
0
MMMM
Mode: %s
/instrumentation/gps/mode
true
/instrumentation/gps/mode
leg
0
1
MMM
Current Route Wp: %03d
/autopilot/route-manager/current-wp
true
/instrumentation/gps/mode
leg
0
1
MMM
Desired Course: %5.1f*
/instrumentation/gps/desired-course-deg
true
0
2
MMM
Xtrack: %5.2fnm
/instrumentation/gps/wp/wp[1]/course-error-nm
true
1
0
MMMMMM
Longitude: %6.3f
/instrumentation/gps/indicated-longitude-deg
true
1
1
MMMMMM
Latitude: %6.3f
/instrumentation/gps/indicated-latitude-deg
true
1
2
MMMMMM
Altitude: %6.0fft
/instrumentation/gps/indicated-altitude-ft
true
2
0
MMMM
Groundspeed: %4.0fkts
/instrumentation/gps/indicated-ground-speed-kt
true
2
1
MMM
Track: %3.0f*
/instrumentation/gps/indicated-track-magnetic-deg
true
2
2
MMMMMM
VS: %4.0ffpm
/instrumentation/gps/indicated-vertical-speed
true
3
0
MMMM
Odometer: %4.1fnm
/instrumentation/gps/odometer
true
3
1
MMMM
RAIM: %3.2f
/instrumentation/gps/raim
true
4
0
MMMMMM
Ident: %s
/instrumentation/gps/wp/wp[1]/ID
true
4
1
2
MMMMMMMMMMM
Name: %s
/instrumentation/gps/wp/wp[1]/name
true
5
0
MMMMMM
Longitude: %6.3f
/instrumentation/gps/wp/wp[1]/longitude-deg
true
5
1
MMMMMM
Latitude: %6.3f
/instrumentation/gps/wp/wp[1]/latitude-deg
true
5
2
MMMMMM
Altitude: %6.0fft
/instrumentation/gps/wp/wp[1]/altitude-ft
true
6
0
MMMMMM
Bearing: %3.0f
/instrumentation/gps/wp/wp[1]/bearing-mag-deg
true
6
1
MMMMMM
Distance: %5.2fnm
/instrumentation/gps/wp/wp[1]/distance-nm
true
6
2
MMMMMMMM
TTW: %s
/instrumentation/gps/wp/wp[1]/TTW
true
/instrumentation/gps/mode
leg
7
0
MMMMMM
Leg Course: %3.0f
/instrumentation/gps/wp/leg-mag-course-deg
true
/instrumentation/gps/mode
leg
7
1
MMMMMM
Leg Distance: %5.1fnm
/instrumentation/gps/wp/leg-distance-nm
true
/instrumentation/gps/mode
obs
/instrumentation/gps/to-flag
7
0
TO
/instrumentation/gps/mode
obs
/instrumentation/gps/from-flag
7
0
FROM
hbox
fill
vbox
hbox
fill
Type:
80
searchType
/sim/gui/dialogs/gps/search-type
any
airport
vor
ndb
fix
wpt
city
town
true
dialog-apply
hbox
fill
Search:
80
search-query
fill
true
150
true
/sim/gui/dialogs/gps/search-query
dialog-apply
hbox
fill
Search
nasal
Search Names
nasal
Nrst
nasal
/autopilot/route-manager/active
Actv RTE WPT
nasal
true
/sim/gui/dialogs/gps/scratch/valid
table
0
0
MMMMMM
Ident: %s
/instrumentation/gps/scratch/ident
true
0
1
2
MMMMMMMMMMM
Name: %s
/instrumentation/gps/scratch/name
true
1
0
MMMMMM
Lon: %6.3f
/instrumentation/gps/scratch/longitude-deg
true
1
1
MMMMMM
Lat: %6.3f
/instrumentation/gps/scratch/latitude-deg
true
1
2
MMMMMM
Alt: %6.0fft
/instrumentation/gps/scratch/altitude-ft
true
2
0
MMMMMM
Bearing: %3.0f
/sim/gui/dialogs/gps/scratch-mag-bearing-deg
true
2
1
MMMMMM
Distance: %5.1fnm
/sim/gui/dialogs/gps/scratch-distance-nm
true
/instrumentation/gps/scratch/type
vor
3
0
MMMMMM
Frequency: %5.1fMhz
/instrumentation/gps/scratch/frequency-mhz
true
/instrumentation/gps/scratch/type
ndb
3
0
MMMMMM
Frequency: %5.1fKhz
/instrumentation/gps/scratch/frequency-khz
true
/sim/gui/dialogs/gps/scratch-index
0
5
0
Prev
left
nasal
/sim/gui/dialogs/gps/scratch-has-next
5
1
Next
right
nasal
hbox
fill
6
LEG
true
nasal
DTO
nasal
OBS
nasal
/instrumentation/gps/mode
obs
100
MMM
Selected Course: %03d*
/instrumentation/gps/selected-course-deg
true
/instrumentation/gps/mode
obs
30
30
true
0
359
true
/instrumentation/gps/selected-course-deg
dialog-apply
true
left
NAV1 Slave
/instrumentation/nav[0]/slaved-to-gps
dialog-apply
Close
true
Esc
dialog-close