Warning: this script is aimed at users (scripters) who have some basic understanding of LSL. If you need a custom script, maybe to interface with this script, feel free to contact me (contact info inside the notecard).
You are allowed to distribute this script with your own creations, but you are not allowed to resell this script.
--
Hovertext is a great way to show information to your customers and can easily be set by a script. However, achieving advanced effects may be a bit tricky.
This script manages hover text over an object in such a way that you can easily create specify parameters and create effects like a smooth fade in or fade out, or smoothly change the color. You can of course specify the color and alpha values, and have the text automatically clear itself after a period of time.
You control it by sending it link_message's from another script. Examples :
llMessageLinked(LINK_THIS,60002,"This is an example of hover text|COLOR=blue|FADEIN=2|FADEOUT=2|SUSTAIN=5",(key)"HTEXT");
will create a blue hover text with a 2-second fade in effect, which will remain active for 5 seconds and then automatically fade out in 2 more seconds.
While it's displayed, you can smoothly change ("morph") its color to green, for example:
llMessageLinked(LINK_THIS,60004,"3|COLOR=green",(key)"HTEXT");
will do the trick in a 3-second transition.
Advanced parameter management is there too (set and get global and local parameters), and everything is fully documented.
A full perm test script is included so you can test all the features in a simple menu interface. Suggestions, discussion, constructive criticism, and tips are most welcome :)
- Extensive control of the hovertext from another script
- Manage color, alpha, fade in and fade out effects
- Optionnal auto-clear after some time. Global and local parameters
- Morphing command to smoothly change the color and/or alpha
- Full documentation