Tutorials: Difference between revisions

Jump to navigation Jump to search
m
Use Nasal highlighter
m (Update forum links)
m (Use Nasal highlighter)
Line 40: Line 40:


Basically, you should be able to come up with your own "reload" function by combining the stop() and the load() functions and adding a new "reload" function to tutorial.nas:
Basically, you should be able to come up with your own "reload" function by combining the stop() and the load() functions and adding a new "reload" function to tutorial.nas:
<syntaxhighlight lang="php">
<syntaxhighlight lang="nasal">
var reload = func(filename,slot) stopTutorial() and load(filename,slot);
var reload = func(filename,slot) stopTutorial() and load(filename,slot);
</syntaxhighlight>
</syntaxhighlight>
Line 369: Line 369:
If an aircraft tutorial wants to use the marker, then the aircraft animation file needs to include the marker model (see above). If this is done, then one can use the "marker-adjust" dialog to find the respective <marker> coordinates. Just type this into the "Help->Nasal Console" dialog:
If an aircraft tutorial wants to use the marker, then the aircraft animation file needs to include the marker model (see above). If this is done, then one can use the "marker-adjust" dialog to find the respective <marker> coordinates. Just type this into the "Help->Nasal Console" dialog:


<syntaxhighlight lang="php">
<syntaxhighlight lang="nasal">
   tutorial.dialog()
   tutorial.dialog()
</syntaxhighlight>
</syntaxhighlight>

Navigation menu