Canvas MapStructure: Difference between revisions

Jump to navigation Jump to search
m
Line 993: Line 993:
{{WIP}}
{{WIP}}


This section will cover the main steps for implementing a new layer whose purpose is showing all targets of a selectable [[Tutorials|tutorial]] on a Canvas/MapStructure map. For testing/development purposes, we will be using the default FlightGear aircraft, i.e. the c172p, because it comes with well-maintained tutorials, and because its '''Taxiing''' tutorials contains a number of <code>targets</code>-
This section will cover the main steps for implementing a new layer whose purpose is showing all targets of a selectable [[Tutorials|tutorial]] on a Canvas/MapStructure map. For testing/development purposes, we will be using the default FlightGear aircraft, i.e. the c172p, because it comes with well-maintained tutorials, and because its '''Taxiing''' tutorials contains a number of <code>targets</code>.
 
[[File:PropertyBrowser-TutorialsNode.png|thumb|Screenshot showing the tutorials node in the property browser]]
 
[[File:C172p-taxiing-tutorial-selection.png|thumb|Screen shot showing the tutorials dialog with the c172p taxiing tutorial selected]]


For starters, we need to take a look at $FG_ROOT/Nasal/tutorial/tutorial.nas to see how to get a list of tutorials, so we open the corresponding file and search for '''tutorials''' and see this:
For starters, we need to take a look at $FG_ROOT/Nasal/tutorial/tutorial.nas to see how to get a list of tutorials, so we open the corresponding file and search for '''tutorials''' and see this:

Navigation menu