[Flightgear-devel] how to gray out autopilot menu?

2009-12-24 Thread dave perry
Hi,

I have searched both the c172p and SenecaII folder for autopilot or 
gui or just menu and I can not find how these AC gray out the 
autopilot menu.  What's the secret?

Dave P.


--
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


Re: [Flightgear-devel] how to gray out autopilot menu?

2009-12-24 Thread Ron Jensen
On Thu, 2009-12-24 at 14:25 -0700, dave perry wrote:
 Hi,
 
 I have searched both the c172p and SenecaII folder for autopilot or 
 gui or just menu and I can not find how these AC gray out the 
 autopilot menu.  What's the secret?
 
 Dave P.


In Nasal/gui.nas is this line:
menuEnable(autopilot, props.globals.getNode(/autopilot/KAP140/locks) == 
nil);

It disables the autopilot menu when /autopilot/KAP140/locks exists...

You could call menuEnable(autopilot, 0); for yourself if you don't
want the menu to appear for your aircraft...

Ron



--
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