20,741
edits
m (→Adding a NavDisplay: http://forum.flightgear.org/viewtopic.php?f=25&t=25331&p=232113&hilit=cdu#p232109) |
|||
| Line 75: | Line 75: | ||
<syntaxhighlight lang="nasal" enclose="div"> | <syntaxhighlight lang="nasal" enclose="div"> | ||
var | # path is relative to $FG_ROOT (base package) | ||
var path = "Textures/Splash1.png"; | |||
# create an image child for the texture | # create an image child for the texture | ||
var child=root.createChild("image") | var child=root.createChild("image") | ||
.setFile( | .setFile( path ) | ||
.setTranslation(100,10) | .setTranslation(100,10) | ||
.setSize(130,130); | .setSize(130,130); | ||