Howto:Prototyping a new NavDisplay Style: Difference between revisions

Jump to navigation Jump to search
Line 43: Line 43:
{{Note|The following patch contains changes that mainly take care of two things:
{{Note|The following patch contains changes that mainly take care of two things:
* properly referencing the <code>canvas</code> namespace, so that the ND module can be separately included via <code>io.include()</code>
* properly referencing the <code>canvas</code> namespace, so that the ND module can be separately included via <code>io.include()</code>
* moving the initialization of aircraft specific SVG elements into the <code>navdisplay.styles</code> file, and the corresponding Boeing/Airbus entries there
* moving the initialization of aircraft specific SVG elements into the <code>navdisplay.styles</code> file, and the corresponding Boeing/Airbus entries there (see <code>initialize_elements()</code>)
}}
}}
<syntaxhighlight lang="diff">diff --git a/Nasal/canvas/api.nas b/Nasal/canvas/api.nas
<syntaxhighlight lang="diff">diff --git a/Nasal/canvas/api.nas b/Nasal/canvas/api.nas

Navigation menu