Difference between revisions of "LlDialog"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function|sort=Dialog|func_id=247|func_sleep=1.0|func_energy=10.0|func=llDialog
{{LSL_Function|sort=Dialog|func_id=247|func_sleep=1.0|func_energy=10.0|func=llDialog
|p1_type=key|p1_name=avatar
|p1_type=key|p1_name=avatar|p1_desc
|p2_type=string|p2_name=message
|p2_type=string|p2_name=message|p2_desc
|p3_type=list|p3_name=buttons
|p3_type=list|p3_name=buttons|p3_desc
|p4_type=integer|p4_name=chat_channel
|p4_type=integer|p4_name=chat_channel|p4_desc
|func_desc=Shows a dialog box on the avatars screen with the message.<br />Up to 12 strings in the list form buttons.<br />If a button is clicked, the name is chatted on chat_channel.|return_text|spec|caveats|examples|helpers|related|notes|cat1=Chat|cat2=Communications}}[[Category:LSL_Stub]]
|func_desc=Shows a dialog box on the '''avatar''' screen with '''message''' and '''buttons'''.
|func_footnote=When a button is pressed, the '''avatar''' chats the button text on '''chat_channel'''.
|return_text|spec
|caveats=
*There is no way by script to kill a dialog box.
*If the button "ignore" is clicked the user does not chat anything.
*There is no way to distinguish the input from a dialog box and regular chat made by the same user.
 
'''message limits'''
*'''message''' must be less than 512 bytes and not empty.
**Other wise it will shout an error on {{LSLG|DEBUG_CHANNEL}}.
*If it exceeds 8 lines a scroll bar will appear.
 
'''buttons limits'''
*No more then 12 buttons can be requested and they must all be strings.
**Other wise it will shout an error on {{LSLG|DEBUG_CHANNEL}}.
*If buttons is an empty list, it will default to as if it were ["OK"].
*Button text cannot be longer then 24 bytes per button.
**Other wise it will shout an error on {{LSLG|DEBUG_CHANNEL}}.
|examples|helpers|related|notes|cat1=Chat|cat2=Communications}}[[Category:LSL_Stub]]

Revision as of 06:17, 8 February 2007

Summary

Function: llDialog( key avatar, string message, list buttons, integer chat_channel );

Shows a dialog box on the avatar screen with message and buttons.

• key avatar
• string message
• list buttons
• integer chat_channel

When a button is pressed, the avatar chats the button text on chat_channel.

Caveats

  • This function causes the script to sleep for 1.0 seconds.
  • There is no way by script to kill a dialog box.
  • If the button "ignore" is clicked the user does not chat anything.
  • There is no way to distinguish the input from a dialog box and regular chat made by the same user.

message limits

  • message must be less than 512 bytes and not empty.
  • If it exceeds 8 lines a scroll bar will appear.

buttons limits

  • No more then 12 buttons can be requested and they must all be strings.
  • If buttons is an empty list, it will default to as if it were ["OK"].
  • Button text cannot be longer then 24 bytes per button.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Search JIRA for related Issues

Signature

function void llDialog( key avatar, string message, list buttons, integer chat_channel );