20,741
edits
No edit summary |
|||
| Line 41: | Line 41: | ||
Thus, the Nasal code to handle these display modes can be really short and elegant, especially compared to all the C++ code that we have currently for the same purpose! | Thus, the Nasal code to handle these display modes can be really short and elegant, especially compared to all the C++ code that we have currently for the same purpose! | ||
For a more comprehensive example on how to use this new feature, please see the file [http://gitorious.org/~tomprogs/fg/toms-fgdata/blobs/canvas/gui/dialogs/map-canvas.xml map-canvas.xml in Tom's fgdata/canvas branch] which is a first stab at re-implementing the hard coded [[Map]] dialog using Nasal/Canvas. | |||
A more recent example can be seen in the new "Airport Selection" dialog: | A more recent example can be seen in the new "Airport Selection" dialog: | ||
| Line 46: | Line 48: | ||
[[File:Select_Airport_dialog.jpg|600px| The new Select Airport dialog with Canvas display of the airport ]] | [[File:Select_Airport_dialog.jpg|600px| The new Select Airport dialog with Canvas display of the airport ]] | ||
This is implemented in $FG_ROOT/gui/dialogs/airports.xml: https://gitorious.org/fg/fgdata/blobs/master/gui/dialogs/airports.xml | |||
Also see: [[Talk:ATC-FS]] | Also see: [[Talk:ATC-FS]] | ||