20,741
edits
m (→Adding Raster Images: more specific snippets for thorsten's space shuttle avionics effort: http://forum.flightgear.org/viewtopic.php?f=4&t=25747&start=90#p238159) |
|||
| Line 87: | Line 87: | ||
|} | |} | ||
The ''' | The '''path''' could also just as well be a URL, i.e. a raster image retrieved via http: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Line 113: | Line 113: | ||
# 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( url) | .setFile( url ) | ||
.setTranslation(45,22) | .setTranslation(45,22) # centered, in relation to dialog coordinates | ||
.setSize(310,155); | .setSize(310,155); # image dimensions | ||
</syntaxhighlight> | </syntaxhighlight> | ||