* Steve Hosgood -- Tuesday 09 May 2006 17:46: > 1) How do I get the 'autopilot' menu item to grey out and go away > please? I've tried studying the c172p and conclude that it does it by > specifying its own autopilot which automagically greys out the default > one. I don't want one at all. How to do that please?
This is decided in $FG_ROOT/Nasal/gui.nas: menuEnable("autopilot", props.globals.getNode("/autopilot/KAP140/locks") == nil); The AP entry is currently only disabled when the KAP140 is active. You can disable it from the *-set.xml file or a *.nas file: <nasal> <colditz> <script>settimer(func { gui.menuEnable("autopilot", 0) }, 2)</script> </colditz> </nasal> Needs to be delayed a bit, because gui.INIT is delayed, too, because it accesses functions of props.nas, and Nasal has no other way to ensure availability of dependencies. m. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel