20,741
edits
(→Design) |
|||
Line 32: | Line 32: | ||
== Design == | == Design == | ||
rgb files are conventional images, like jpg/png - so they are so called "raster images" (unlike SVGs, which are "vector images"). | |||
So to display raster images, you can use the tutorial at: http://wiki.flightgear.org/Howto:Using_raster_images_and_nested_canvases | |||
This assumes that you have previously created the corresponding charts as image files, a technique that omega95 and redneck have been using for a while. | |||
For starters, you can use the Nasal console to play around with it: http://wiki.flightgear.org/Nasal_Console | |||
Now, to add an EFB dialog to the 777, you could use the old dialogs and embed a canvas region, see the tutorial at: http://wiki.flightgear.org/Howto:Adding_a_canvas_to_a_GUI_dialog | |||
If you want to display vector images (SVG) or custom-drawn maps, you'll want to use OpenVG paths | |||
To display a procedurally-created airport chart (without adding a precreated raster image for each airport), you'll probably want to use the technique used by the airport selection dialog | |||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> |