aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
authorunknown2010-03-06 14:13:12 -0600
committerMelanie2010-03-06 20:05:11 +0000
commit2dcf73dd93f2bc8993c2f534ef5ee8c72e24d0f3 (patch)
tree6b44acaa4ce8d0227996433d21272b3654baeb3a /OpenSim/Region/ScriptEngine/Shared/Api
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-2dcf73dd93f2bc8993c2f534ef5ee8c72e24d0f3.zip
opensim-SC_OLD-2dcf73dd93f2bc8993c2f534ef5ee8c72e24d0f3.tar.gz
opensim-SC_OLD-2dcf73dd93f2bc8993c2f534ef5ee8c72e24d0f3.tar.bz2
opensim-SC_OLD-2dcf73dd93f2bc8993c2f534ef5ee8c72e24d0f3.tar.xz
- supporting llTextBox
Signed-off-by: Melanie <melanie@t-data.com>
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs29
1 files changed, 27 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 0a871d9..6f68305 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4009,10 +4009,34 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4009 ScriptSleep(5000); 4009 ScriptSleep(5000);
4010 } 4010 }
4011 4011
4012 public void llTextBox(string avatar, string message, int chat_channel) 4012 public void llTextBox(string agent, string message, int chatChannel)
4013 { 4013 {
4014 IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
4015
4016 if (dm == null)
4017 return;
4018
4014 m_host.AddScriptLPS(1); 4019 m_host.AddScriptLPS(1);
4015 NotImplemented("llTextBox"); 4020 UUID av = new UUID();
4021 if (!UUID.TryParse(agent,out av))
4022 {
4023 LSLError("First parameter to llDialog needs to be a key");
4024 return;
4025 }
4026
4027 if( message == string.Empty)
4028 {
4029 ShoutError("Trying to use llTextBox with empty message.");
4030 }
4031 else if (message.Length > 512)
4032 {
4033 ShoutError("Trying to use llTextBox with message over 512 characters.");
4034 }
4035 else
4036 {
4037 dm.SendTextBoxToUser(av, message, chatChannel, m_host.Name, m_host.UUID, m_host.OwnerID);
4038 ScriptSleep(1000);
4039 }
4016 } 4040 }
4017 4041
4018 public void llModifyLand(int action, int brush) 4042 public void llModifyLand(int action, int brush)
@@ -4027,6 +4051,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4027 4051
4028 public void llCollisionSound(string impact_sound, double impact_volume) 4052 public void llCollisionSound(string impact_sound, double impact_volume)
4029 { 4053 {
4054
4030 m_host.AddScriptLPS(1); 4055 m_host.AddScriptLPS(1);
4031 // TODO: Parameter check logic required. 4056 // TODO: Parameter check logic required.
4032 UUID soundId = UUID.Zero; 4057 UUID soundId = UUID.Zero;