aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs66
1 files changed, 66 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 7da47d4..93de3b4 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -4265,6 +4265,72 @@ namespace OpenSim.Region.ScriptEngine.Common
4265 return LLUUID.Zero.ToString(); 4265 return LLUUID.Zero.ToString();
4266 } 4266 }
4267 4267
4268 public string osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams,
4269 int timer, int alpha)
4270 {
4271 m_host.AddScriptLPS(1);
4272 if (dynamicID == String.Empty)
4273 {
4274 IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
4275 LLUUID createdTexture =
4276 textureManager.AddDynamicTextureURL(World.RegionInfo.RegionID, m_host.UUID, contentType, url,
4277 extraParams, timer, true, (byte) alpha );
4278 return createdTexture.ToString();
4279 }
4280 else
4281 {
4282 //TODO update existing dynamic textures
4283 }
4284
4285 return LLUUID.Zero.ToString();
4286 }
4287
4288 public string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams,
4289 int timer)
4290 {
4291 m_host.AddScriptLPS(1);
4292 if (dynamicID == String.Empty)
4293 {
4294 IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
4295 if (textureManager != null)
4296 {
4297 LLUUID createdTexture =
4298 textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data,
4299 extraParams, timer);
4300 return createdTexture.ToString();
4301 }
4302 }
4303 else
4304 {
4305 //TODO update existing dynamic textures
4306 }
4307
4308 return LLUUID.Zero.ToString();
4309 }
4310
4311 public string osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams,
4312 int timer, int alpha)
4313 {
4314 m_host.AddScriptLPS(1);
4315 if (dynamicID == String.Empty)
4316 {
4317 IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>();
4318 if (textureManager != null)
4319 {
4320 LLUUID createdTexture =
4321 textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data,
4322 extraParams, timer, true, (byte) alpha);
4323 return createdTexture.ToString();
4324 }
4325 }
4326 else
4327 {
4328 //TODO update existing dynamic textures
4329 }
4330
4331 return LLUUID.Zero.ToString();
4332 }
4333
4268 public bool osConsoleCommand(string command) 4334 public bool osConsoleCommand(string command)
4269 { 4335 {
4270 m_host.AddScriptLPS(1); 4336 m_host.AddScriptLPS(1);