Finally I can reproduce this ...
In EC130 the MMB drag changes the power setting of the Twist Grip and displays the setting by
- Code: Select all
p = getprop("/controls/engines/engine/power");
gui.popupTip(sprintf("Twist Grip %d%%", 100 * p));
If I startup from scratch I can use the MMB without problems and get the popuptip displayed.
If e.g. I use an outside view, hover over a door, click it and then use the MMB drag I get Nasal tooltip errors on the console ...
Here is the hovered binding of an example.
It follows what is described in the wiki.
- Code: Select all
<hovered>
<binding>
<command>set-tooltip</command>
<tooltip-id>doorfl</tooltip-id>
<label>%s</label>
<property>/instrumentation/doors/frontl/position-norm</property>
<mapping>nasal</mapping>
<script>
var mode = ['open', 'close'];
return mode[arg[0]];
</script>
</binding>
</hovered>
I don't really understand the way it works, and as it seems it doesn't work very well
I have used this very often and would be happy to hear how to fix it ...
EDIT: In EC130 for the moment (end March 2015) all but one hover tooltip (altimeter) using Nasal scripting are deactivated in development repository on gitlab to minimize Nasal runtime errors until cause of problem is found
Thanks
Mike-DE