20,741
edits
(http://flightgear.org/forums/viewtopic.php?f=18&t=19976&p=184027#p184027) |
No edit summary |
||
Line 12: | Line 12: | ||
<pref-height>400</pref-height> | <pref-height>400</pref-height> | ||
<nasal> | <nasal> | ||
<!-- this is the Nasal/canvas section where you can run your own Nasal code --> | <!-- | ||
this is the Nasal/canvas section where you can run your own Nasal code | |||
to access the canvas section | |||
--> | |||
<load><![CDATA[ | <load><![CDATA[ | ||
# you can add your canvas code here | # you can add your canvas-specific code here | ||
var my_canvas = canvas.get( cmdarg() ); | var my_canvas = canvas.get( cmdarg() ); # this will get a handle to the parent canvas : | ||
print("Hello world from the embedded canvas section!\n"); | print("Hello world from the embedded canvas section!\n"); | ||