aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorMelanie2010-03-09 22:46:17 +0000
committerMelanie2010-03-09 22:46:17 +0000
commit40873504dcde19a3738cf4d3a4928a59b811e8f0 (patch)
tree605d2c2575e21496b05eeabd0a5755b8fa788efd /OpenSim/Region/ScriptEngine
parent- parcel blocking, region crossing blocking, teleport blocking (diff)
parentMerge branch 'master' of melanie@opensimulator.org:/var/git/opensim (diff)
downloadopensim-SC_OLD-40873504dcde19a3738cf4d3a4928a59b811e8f0.zip
opensim-SC_OLD-40873504dcde19a3738cf4d3a4928a59b811e8f0.tar.gz
opensim-SC_OLD-40873504dcde19a3738cf4d3a4928a59b811e8f0.tar.bz2
opensim-SC_OLD-40873504dcde19a3738cf4d3a4928a59b811e8f0.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-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 aa2c8b3..093cd0b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4201,10 +4201,34 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4201 ScriptSleep(5000); 4201 ScriptSleep(5000);
4202 } 4202 }
4203 4203
4204 public void llTextBox(string avatar, string message, int chat_channel) 4204 public void llTextBox(string agent, string message, int chatChannel)
4205 { 4205 {
4206 IDialogModule dm = World.RequestModuleInterface<IDialogModule>();
4207
4208 if (dm == null)
4209 return;
4210
4206 m_host.AddScriptLPS(1); 4211 m_host.AddScriptLPS(1);
4207 NotImplemented("llTextBox"); 4212 UUID av = new UUID();
4213 if (!UUID.TryParse(agent,out av))
4214 {
4215 LSLError("First parameter to llDialog needs to be a key");
4216 return;
4217 }
4218
4219 if( message == string.Empty)
4220 {
4221 ShoutError("Trying to use llTextBox with empty message.");
4222 }
4223 else if (message.Length > 512)
4224 {
4225 ShoutError("Trying to use llTextBox with message over 512 characters.");
4226 }
4227 else
4228 {
4229 dm.SendTextBoxToUser(av, message, chatChannel, m_host.Name, m_host.UUID, m_host.OwnerID);
4230 ScriptSleep(1000);
4231 }
4208 } 4232 }
4209 4233
4210 public void llModifyLand(int action, int brush) 4234 public void llModifyLand(int action, int brush)
@@ -4219,6 +4243,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4219 4243
4220 public void llCollisionSound(string impact_sound, double impact_volume) 4244 public void llCollisionSound(string impact_sound, double impact_volume)
4221 { 4245 {
4246
4222 m_host.AddScriptLPS(1); 4247 m_host.AddScriptLPS(1);
4223 // TODO: Parameter check logic required. 4248 // TODO: Parameter check logic required.
4224 UUID soundId = UUID.Zero; 4249 UUID soundId = UUID.Zero;