On Sunday, June 19, 2011 05:12:31 PM Ron Jensen wrote:
> On Sunday 19 June 2011 17:55:25 Hal V. Engel wrote:
> > On Sunday, June 19, 2011 02:15:54 PM Ron Jensen wrote:
> > > http://www.mail-archive.com/flightgear-devel@lists.sourceforge.net/msg3
> > > 02
> > >
> > >08 .html gui.menuBind("radio", "dialogs.Radio.open()");
> > 
> > Thanks I knew I saw something about this on the list but I coundn't find
> > the emails that covered it.   When I try to use it it fails when I click
> > on the menu item.
> > 
snip
> > 
> > Hal
> 
> In the example case you are running in the namespace "dialogs" so, in the
> setfile you would have:
> <nasal>
>  <dialogs>
>    <file>mynasal.nas
> 
> If you have something different, you need something different...
> Assuming you load the nasal in this block:
>   <nasal>
>     <p51d>
>       <file>Aircraft/p51d/Nasal/over-ride-flaps.nas</file>
>       <file>Aircraft/p51d/Nasal/stores.nas</file>
>       <file>Aircraft/p51d/Nasal/limits.nas</file>
>       <file>Aircraft/p51d/Nasal/engine-start.nas</file>
>       <file>Aircraft/p51d/Nasal/sputter.nas</file>
>       <file>Aircraft/p51d/Nasal/climbrate.nas</file>
>       <file>Aircraft/p51d/Nasal/gear-doors.nas</file>
>       <file>Aircraft/p51d/Nasal/gear-lever.nas</file>
>     </p51d>
>   </nasal>
> 
> gui.menuBind("radio", "p51d.radio.open()");
> 
> Ron

Ron,

Thanks that was the issue.  I had the radio nasal <file> in a <SCR_522C> 
section in my *set.xml file and I should have used "SCR_522C.Radio.open()" in 
the gui.menuBind() call.  I have it working nicely now.

I will have the radio code in my fgdata clone updated shortly and when this 
gets merged into fgdata it should be usable by anyone who is modeling a 
WWII/Korean war era US or UK military aircraft since almost all of these used 
this radio.  At this point the radio control unit is fully modeled and fully 
functional.  About the only area where it could use improvement is that it 
currently has no keyboard mappings but all of it's features can be manipulated 
with a mouse.

Hal
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to