Template:Canvas ND Integration Tutorial

From FlightGear wiki
Jump to navigation Jump to search
This article is a stub. You can help the wiki by expanding it.
Note  These instructions make the following implicit assumptions:
  • you have a checked out/cloned version of the base package ($FG_ROOT)
  • your SVG file is located in $FG_ROOT/Nasal/canvas/ND/CitationX
  • it is named
  • ...
  • ...
  1. Create a new SVG file containing the symbols for your custom ND, e.g. by using one of the files as a template (see [1]) and copying it, use an appropriate name like CitationX.svg
  2. Open $FG_ROOT/Nasal/canvas/navdisplay.styles and duplicate an existing aircaft section there, renaming it accordingly CitationX, navigate to the bottom of the file where it says:
#####
##
## add support for other aircraft/ND types and styles here 
## or move to other files.
##
## see: http://wiki.flightgear.org/NavDisplay#Custom_ND_Styles
## and: http://wiki.flightgear.org/NavDisplay#Adding_new_features
  1. Customize the instantion portion of your ND.nas file accordingly:
  1. Extend/modify and add callbacks for custom symbols/animations: