Tooltips: Difference between revisions

Jump to navigation Jump to search
157 bytes added ,  2 June 2016
Line 58: Line 58:


'''Thus''', another hypothesis is that this could be related due to package-manager installed OSG versions lacking some dependencies - e.g. libpng (was used to be an issue at some point previously), i.e. because tooltip.nas basically sets up an <code>image</code> child as the background image (see tooltip.nas lines 70+), and in fact, that's a png: $FG_ROOT/gui/images/tooltip.png
'''Thus''', another hypothesis is that this could be related due to package-manager installed OSG versions lacking some dependencies - e.g. libpng (was used to be an issue at some point previously), i.e. because tooltip.nas basically sets up an <code>image</code> child as the background image (see tooltip.nas lines 70+), and in fact, that's a png: $FG_ROOT/gui/images/tooltip.png


To see if that applies here, it would make sense to try an arbitrary canvas/image snippet in conjunction with a png image: http://wiki.flightgear.org/Canvas_Snippets#Adding_Raster_Images
To see if that applies here, it would make sense to try an arbitrary canvas/image snippet in conjunction with a png image: http://wiki.flightgear.org/Canvas_Snippets#Adding_Raster_Images
[[File:Canvas-tooltip-png-check-dlg.png|thumb|Screenshot showing a Canvas GUI dialog with the background image for [[tooltips]] loaded (libpng/osg test)]]


You can do this by copying the following snippet into the [[Nasal Console]] and running the code:
You can do this by copying the following snippet into the [[Nasal Console]] and running the code:

Navigation menu