Difference between revisions of "PRIM TEXT"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<onlyinclude>{{#if:
<onlyinclude>{{#if:
{{LSL Function/color|color}}
{{LSL Function/alpha|alpha}}
{{#vardefine:p_text_desc|text to display}}


{{#vardefine:text_const|{{LSL Const|PRIM_TEXT|integer|26|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the object's floating text}}}}
{{#vardefine:text_const|{{LSL Const|PRIM_TEXT|integer|26|c=Used to {{GetSet|{{{1|}}}|get|set|/}} the object's floating text}}}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
{{LSL_Function/boolean|boolean}}


}}{{LSL Constant
}}{{LSL Constant

Revision as of 10:02, 2 March 2010

Description

Constant: integer PRIM_TEXT = 26;

The integer constant PRIM_TEXT has the value 26

KBcaution.png Important: This function is not yet released and will be available with Server 1.38.

Used to get or set the object's floating text.

llSetPrimitiveParams

[ PRIM_TEXT, string text, vector color, float alpha ]
• string text text to display
• vector color color in RGB <R, G, B> (<0.0, 0.0, 0.0> = black, <1.0, 1.0, 1.0> = white)
• float alpha from 0.0 (clear) to 1.0 (solid) (0.0 <= alpha <= 1.0)

When used with llSetPrimitiveParams & llSetLinkPrimitiveParams

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_TEXT ]);

Returns the list [ string text, vector color, float alpha ]

• string text text to display
• vector color color in RGB <R, G, B> (<0.0, 0.0, 0.0> = black, <1.0, 1.0, 1.0> = white)
• float alpha from 0.0 (clear) to 1.0 (solid) (0.0 <= alpha <= 1.0)

Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_TEXT = 26;