Difference between revisions of "LlSetTouchText"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
m |
|||
Line 4: | Line 4: | ||
|func_id=241|func_sleep=0.0|func_energy=10.0 | |func_id=241|func_sleep=0.0|func_energy=10.0 | ||
|p1_type=string|p1_name=text | |p1_type=string|p1_name=text | ||
|func_footnote=This is very similar to [[LlSetSitText]] | |func_footnote=This is very similar to [[LlSetSitText]].<br/> | ||
To restore the default value, use an empty string for '''text'''.<br/> | |||
To make it appear as if there is no text, use some combination of whitespace characters for '''text'''. | |||
|func_desc=Displays '''text''' rather than the default "Touch" in the pie menu | |func_desc=Displays '''text''' rather than the default "Touch" in the pie menu | ||
|return_text | |return_text | ||
|spec= | |spec | ||
The '''text''' is limited to 9 | |caveats=*The '''text''' is limited to 9 bytes. | ||
**A tab (\t) counts as 4 bytes (four spaces). | |||
**The newline character (\n) will count as 1 byte, but will have no effect on how the text is rendered (so don't use it). | |||
**The byte count for each Unicode character is equal to the number of bytes needed to represent it in UTF-8. | |||
|examples= | |||
<lsl>default{ | <lsl>default{ | ||
state_entry(){ | state_entry(){ | ||
Line 24: | Line 23: | ||
} | } | ||
}</lsl> | }</lsl> | ||
|caveats | |caveats | ||
|constants | |constants | ||
|helpers | |helpers | ||
|also_functions= | |also_functions={{LSL DefineRow||[[llSetSitText]]}} | ||
|also_events | |also_events | ||
|also_tests | |also_tests | ||
|also_articles= | |also_articles={{LSL DefineRow||{{LSLGC|Touch}}}} | ||
|notes | |notes | ||
|permission | |permission | ||
Line 55: | Line 37: | ||
|cat2=Touch | |cat2=Touch | ||
|cat3=Text | |cat3=Text | ||
|cat4 | |cat4=Prim | ||
|cat5=Effect | |||
}} | }} |
Revision as of 19:19, 9 July 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSetTouchText( string text );241 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Displays text rather than the default "Touch" in the pie menu
• string | text |
This is very similar to LlSetSitText.
To restore the default value, use an empty string for text.
To make it appear as if there is no text, use some combination of whitespace characters for text.
Caveats
- The text is limited to 9 bytes.
- A tab (\t) counts as 4 bytes (four spaces).
- The newline character (\n) will count as 1 byte, but will have no effect on how the text is rendered (so don't use it).
- The byte count for each Unicode character is equal to the number of bytes needed to represent it in UTF-8.
Examples
<lsl>default{
state_entry(){ llSetTouchText("Touch me!"); } touch_start(integer detected){ llSay(0, "you touched me!"); }}</lsl>