map vbox true 0.41 0.4 0.42 1.0 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); 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 hbox true vbox 100 /gui/map/draw-fixes true dialog-apply property-toggle 100 /gui/map/draw-navaids true dialog-apply property-toggle 100 /gui/map/draw-traffic true dialog-apply property-toggle 100 /gui/map/draw-data true dialog-apply property-toggle 100 /gui/map/draw-flight-history true dialog-apply property-toggle true 100 /gui/map/magnetic-headings true dialog-apply property-toggle 100 /gui/map/centre-on-aircraft true dialog-apply property-toggle 100 /gui/map/aircraft-heading-up true dialog-apply property-toggle 100 /gui/map/transparent true dialog-apply property-toggle nasal true vbox true fill fill true 400 600 /gui/map hbox Zoom %d /gui/map/zoom true