Tooltips: Difference between revisions

Jump to navigation Jump to search
Line 65: Line 65:


You can do this by copying the following snippet into the [[Nasal Console]] and running the code (it will try to load/display the png image used as the background for tooltips):
You can do this by copying the following snippet into the [[Nasal Console]] and running the code (it will try to load/display the png image used as the background for tooltips):
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">var (width,height) = (320,160);
 
var (width,height) = (320,160);
var title = 'canvas tooltip/png check';
var title = 'canvas tooltip/png check';


Line 84: Line 82:
     .setTranslation(100, 10)
     .setTranslation(100, 10)
     .setSize(130, 130);
     .setSize(130, 130);
</syntaxhighlight>
 
var image_node = child._node;
 
gui.property_browser( image_node );
debug.dump( image_node );</syntaxhighlight>


If those snippets also fail, it's almost certain that this is related to png image handling. So please be sure to make that test and report back.
If those snippets also fail, it's almost certain that this is related to png image handling. So please be sure to make that test and report back.

Navigation menu