Howto:Prototyping a new NavDisplay Style: Difference between revisions

Jump to navigation Jump to search
Line 41: Line 41:


== Base Package changes ==
== Base Package changes ==
 
{{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>
* moving the initialization of aircraft specific SVG elements into the <code>navdisplay.styles</code> file, and the corresponding Boeing/Airbus entries there
}}
<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
index ea67217..8fd77e5 100644
index ea67217..8fd77e5 100644

Navigation menu