diff options
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 29 |
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; |