map
vbox
true
3
1.0
var mapDialog = cmdarg();
var setTransparency = func(updateDialog){
var alpha = (getprop("/sim/gui/map/transparent") or 0);
mapDialog.getNode("color/alpha").setValue(1-alpha*0.3);
# mhab commented out
#mapDialog.getNode("color/red").setValue(0.41-alpha*0.2);
#mapDialog.getNode("color/green").setValue(0.4-alpha*0.2);
#mapDialog.getNode("color/blue").setValue(0.42-alpha*0.2);
var n = props.Node.new({ "dialog-name": "map" });
if (updateDialog)
{
fgcommand("dialog-close", n);
fgcommand("dialog-show", n);
}
}
setTransparency(0);
hbox
1
1
1
hbox
true
fill
vbox
left
/sim/gui/map/draw-heliports
true
dialog-apply
property-toggle
left
/sim/gui/map/draw-fixes
true
dialog-apply
property-toggle
left
/sim/gui/map/draw-navaids
true
dialog-apply
property-toggle
left
/sim/gui/map/draw-pois
true
dialog-apply
property-toggle
left
/sim/gui/map/draw-traffic
true
dialog-apply
property-toggle
left
/sim/gui/map/draw-data
true
dialog-apply
property-toggle
left
/sim/gui/map/draw-aircraft
true
dialog-apply
property-toggle
left
/sim/gui/map/draw-flight-history
true
/sim/gui/map/draw-aircraft
dialog-apply
property-toggle
true
left
/sim/gui/map/magnetic-headings
true
/sim/gui/map/draw-aircraft
dialog-apply
property-toggle
left
/sim/gui/map/centre-on-aircraft
true
/sim/gui/map/draw-aircraft
dialog-apply
property-toggle
left
/sim/gui/map/aircraft-heading-up
true
/sim/gui/map/draw-aircraft
dialog-apply
property-toggle
left
/sim/gui/map/transparent
true
dialog-apply
property-toggle
nasal
left
/sim/gui/map/key-pan
true
dialog-apply
property-toggle
true
vbox
true
hbox
Zoom %d
/sim/gui/map/zoom
true