* Melchior FRANZ -- Wednesday 19 July 2006 22:14: > As you all probably know (or should know :-), some aircraft have config > dialogs (most of them are bound to the Tab-key: bo105, c150, Lightning, > OV-10). Until recently, those had to be purely Nasal-generated dialogs.
I just replaced this gui.loadXMLDialog() function by a (slightly) more powerful gui.Dialog() class. Usage: var dialog = gui.Dialog.new( "/sim/gui/dialogs/foo/dialog", # needs to end with "dialog" "Aircraft/foo/dialog.xml"); # where the file is dialog.open(); dialog.close(); There's also a toggle() and an is_open() method. A load() method is automatically called by open, but can be used explicitly, too. It reloads the XML file and is very helpful when working on that file. The most obvious call of dialog.toggle() is from key bindings. See the bo105 files for a Real Life example. 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