map
vbox
true
3
1.0
var mapDialog = cmdarg();
var setTransparency = func(updateDialog){
var alpha = (getprop("/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
/gui/map/draw-heliports
true
dialog-apply
property-toggle
left
/gui/map/draw-fixes
true
dialog-apply
property-toggle
left
/gui/map/draw-navaids
true
dialog-apply
property-toggle
left
/gui/map/draw-traffic
true
dialog-apply
property-toggle
left
/gui/map/draw-data
true
dialog-apply
property-toggle
left
/gui/map/draw-flight-history
true
dialog-apply
property-toggle
true
left
/gui/map/magnetic-headings
true
dialog-apply
property-toggle
left
/gui/map/centre-on-aircraft
true
dialog-apply
property-toggle
left
/gui/map/aircraft-heading-up
true
dialog-apply
property-toggle
left
/gui/map/transparent
true
dialog-apply
property-toggle
nasal
true
vbox
true
hbox
Zoom %d
/gui/map/zoom
true