diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index fbae9c8..91ee1b3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -427,6 +427,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
427 | return UUID.Zero.ToString(); | 427 | return UUID.Zero.ToString(); |
428 | } | 428 | } |
429 | 429 | ||
430 | public string osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams, | ||
431 | bool blend, int timer, int alpha, int face) | ||
432 | { | ||
433 | CheckThreatLevel(ThreatLevel.VeryLow, "osSetDynamicTextureURLBlendFace"); | ||
434 | |||
435 | m_host.AddScriptLPS(1); | ||
436 | if (dynamicID == String.Empty) | ||
437 | { | ||
438 | IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); | ||
439 | UUID createdTexture = | ||
440 | textureManager.AddDynamicTextureURL(World.RegionInfo.RegionID, m_host.UUID, contentType, url, | ||
441 | extraParams, timer, blend, (byte) alpha, face); | ||
442 | return createdTexture.ToString(); | ||
443 | } | ||
444 | else | ||
445 | { | ||
446 | //TODO update existing dynamic textures | ||
447 | } | ||
448 | |||
449 | return UUID.Zero.ToString(); | ||
450 | } | ||
451 | |||
430 | public string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, | 452 | public string osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, |
431 | int timer) | 453 | int timer) |
432 | { | 454 | { |
@@ -485,6 +507,35 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
485 | return UUID.Zero.ToString(); | 507 | return UUID.Zero.ToString(); |
486 | } | 508 | } |
487 | 509 | ||
510 | public string osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, | ||
511 | bool blend, int timer, int alpha, int face) | ||
512 | { | ||
513 | CheckThreatLevel(ThreatLevel.VeryLow, "osSetDynamicTextureDataBlendFace"); | ||
514 | |||
515 | m_host.AddScriptLPS(1); | ||
516 | if (dynamicID == String.Empty) | ||
517 | { | ||
518 | IDynamicTextureManager textureManager = World.RequestModuleInterface<IDynamicTextureManager>(); | ||
519 | if (textureManager != null) | ||
520 | { | ||
521 | if (extraParams == String.Empty) | ||
522 | { | ||
523 | extraParams = "256"; | ||
524 | } | ||
525 | UUID createdTexture = | ||
526 | textureManager.AddDynamicTextureData(World.RegionInfo.RegionID, m_host.UUID, contentType, data, | ||
527 | extraParams, timer, blend, (byte) alpha, face); | ||
528 | return createdTexture.ToString(); | ||
529 | } | ||
530 | } | ||
531 | else | ||
532 | { | ||
533 | //TODO update existing dynamic textures | ||
534 | } | ||
535 | |||
536 | return UUID.Zero.ToString(); | ||
537 | } | ||
538 | |||
488 | public bool osConsoleCommand(string command) | 539 | public bool osConsoleCommand(string command) |
489 | { | 540 | { |
490 | CheckThreatLevel(ThreatLevel.Severe, "osConsoleCommand"); | 541 | CheckThreatLevel(ThreatLevel.Severe, "osConsoleCommand"); |