> On Wed, Dec 30, 2009 at 2:21 PM, dave perry <skida...@mindspring.com> wrote: > > Hi, > > > > Does anyone object to graying out the autopilot menu for tw additional > > autopilots used by several aircraft? > > I would suggest introducing an enable switch for the generic > autopilot, the state of which would be reflected in the menu status as > well. Specific autopilots could then disable the generic one. Ideally, > the generic autopilot shouldn't even get loaded - I'd exile it from > preferences.xml to the aircraft files. If an aircraft doesn't have a > custom autopilot it should load the generic one explicitly. > > I'd even consider simply moving the menu disable call itself into the > specific autopilot nasal files a better solution than listing special > cases in gui.nas. > Dave,
I have just commited a modified version of your patch. Autopilot names are still hardcoded into gui.nas but probably easier to maintain. And I added a property /autopilot/hide-menu that, if set at startup, hides the autopilot menu item. I have tested several aircraft with success but not all. As ever: please complain if I broke anything. @Csaba: as far as I discovered, the generic autopilot is not loaded, if an aircraft specific autopilot is configured in the -set.xml file? This still does not disable the autopilot menu, however. I did not dare to disable the menu item, if the autopilot is not the generic one because individual autopilots might want to see the menu item. Maybe the current solution is a good compromise. Happy new Year! Torsten ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel