Difference between revisions of "PRIM TEXT"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 4: Line 4:
{{LSL Function/alpha|alpha}}
{{LSL Function/alpha|alpha}}


{{#vardefine:p_text_desc|text to display}}
{{#vardefine:p_text_set_hover|floating text to display}}
{{#vardefine:p_text_get_hover|floating text displayed}}
{{#vardefine:p_text_hover|{{#switch:{{{1|}}}|get={{#var:p_text_get_hover}}|set={{#var:p_text_set_hover}}|floating text}}}}
 
{{#vardefine:p_text_set_desc|[[llSetText|floating text]] to display}}
{{#vardefine:p_text_get_desc|[[llSetText|floating text]] displayed}}
{{#vardefine:p_text_desc|{{#switch:{{{1|}}}|get={{#var:p_text_get_desc}}|set={{#var:p_text_set_desc}}|[[llSetText|floating text]]}}}}


{{#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}}}}
{{#vardefine:caveats|{{#var:caveats}}
* Do not rely on {{#var:text_const}} as a storage medium. Floating text has been altered in past server updates, and even "invisible" floating text can be read by anybody.}}


}}</onlyinclude>{{#if:
}}</onlyinclude>{{#if:
Line 16: Line 25:
|desc={{KBcaution|This function is not yet released and will be available with Server 1.38.}}
|desc={{KBcaution|This function is not yet released and will be available with Server 1.38.}}
Used to get or set the object's [[llSetText|floating text]].
Used to get or set the object's [[llSetText|floating text]].
|pa={{LSL Constant/List|i_front=[&#32;{{#var:text_const}},&#32;|i_end=&nbsp;]
|pa={{LSL Constant/List|i_front=[[llSetPrimitiveParams]]([ {{#var:text_const}},&#32;|i_end=&nbsp;]
|text=When used with [[llSetPrimitiveParams]] & [[llSetLinkPrimitiveParams]]
|text=Syntax for: [[llSetPrimitiveParams]], [[llSetLinkPrimitiveParams]] & [[llSetLinkPrimitiveParamsFast]]
|i1_type=string|i1_name=text
|i1_type=string|i1_name=text_set|i1_disp=text
|i2_type=vector|i2_name=color
|i2_type=vector|i2_name=color
|i3_type=float|i3_name=alpha
|i3_type=float|i3_name=alpha
|toc=llSetPrimitiveParams
|toc=llSetPrimitiveParams
}}
}}
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([&nbsp;{{#var:text_const}}|i_end=&nbsp;]);|
|pb={{LSL Constant/List|i_front=[[llGetPrimitiveParams]]([ {{#var:text_const}}|i_end=&nbsp;]);|
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|r_front=Returns the list [&nbsp;|r_end=&nbsp;]
|text
|text=Syntax for: [[llGetPrimitiveParams]], [[llGetLinkPrimitiveParams]]
|r1_type=string|r1_name=text
|r1_type=string|r1_name=text_get|r1_disp=text
|r2_type=vector|r2_name=color
|r2_type=vector|r2_name=color
|r3_type=float|r3_name=alpha
|r3_type=float|r3_name=alpha

Revision as of 11:17, 21 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

llSetPrimitiveParams([ PRIM_TEXT, string text, vector color, float alpha ]
• string text floating 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)

Syntax for: llSetPrimitiveParams, llSetLinkPrimitiveParams & llSetLinkPrimitiveParamsFast

llGetPrimitiveParams

llGetPrimitiveParams([ PRIM_TEXT ]);

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

• string text floating text displayed
• 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)

Syntax for: llGetPrimitiveParams, llGetLinkPrimitiveParams

Caveats

  • Do not rely on PRIM_TEXT as a storage medium. Floating text has been altered in past server updates, and even "invisible" floating text can be read by anybody.


Deep Notes

Search JIRA for related Issues

Signature

integer PRIM_TEXT = 26;