Description
The text labeller is a small sub-system of the Malleable Linkset that allows the user to place any text onto a moveable prim.
To do this, the prim must contain a copy of the ML Labeller script, as well as the Moveable Prim script.
The script makes use of OpenSim's prim drawing capabilities. This means that the specified text is applied as a texture on all sides of the prim - although use can be made of alpha to conceal faces, or black colour to obliterate text on unwanted faces. The script will resize the prim to allow room for the text.
To apply text to a text label prim, select the prim and then say the text in chat on channel 10.
The text is saved when a notecard save is performed, and restored when a "load" or "create group" is executed. In this way, labels can be created that relate to a particular setup of the ML.
Technical considerations
The listener, together with the save/load logic, is part of the main ML script, which communicates the text to the child prim via a linked message. This is necessary because a script cannot apply text to another prim in a linket.
The text is actually stored as PRIM_TEXT in the save file, but the labeller script converts this into the prim-drawing text and hides the llSetText() text by setting its alpha to 0.