From de59910758483f18068f786dc0b5ecab66a5e08b Mon Sep 17 00:00:00 2001 From: Melanie Date: Mon, 21 Dec 2009 14:46:07 +0000 Subject: Patch from Ziah. Mantis #4456: Patch to implement some minor MRM Functions : SitTarget, SitTargetText, TouchText and Text --- .../Scripting/Minimodule/SOPObject.cs | 40 +++++++++++++++++----- 1 file changed, 32 insertions(+), 8 deletions(-) diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs index 1f1ebae..143c454 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs @@ -258,26 +258,50 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule public Vector3 SitTarget { - get { throw new System.NotImplementedException(); } - set { throw new System.NotImplementedException(); } + get { return GetSOP().SitTargetPosition; } + set + { + if (CanEdit()) + { + GetSOP().SitTargetPosition = value; + } + } } public string SitTargetText { - get { throw new System.NotImplementedException(); } - set { throw new System.NotImplementedException(); } + get { return GetSOP().SitName; } + set + { + if (CanEdit()) + { + GetSOP().SitName = value; + } + } } public string TouchText { - get { throw new System.NotImplementedException(); } - set { throw new System.NotImplementedException(); } + get { return GetSOP().TouchName; } + set + { + if (CanEdit()) + { + GetSOP().TouchName = value; + } + } } public string Text { - get { throw new System.NotImplementedException(); } - set { throw new System.NotImplementedException(); } + get { return GetSOP().Text; } + set + { + if (CanEdit()) + { + GetSOP().SetText(value,new Vector3(1.0f,1.0f,1.0f),1.0f); + } + } } public bool IsRotationLockedX -- cgit v1.1 From c0a8c2e70728afa10aa84be3bb7cb9930dc791e9 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Mon, 21 Dec 2009 06:58:21 -0800 Subject: Making the library read the item's flag, so that clothing items can have the proper icons. --- OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs index 7305795..42e6510 100644 --- a/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs +++ b/OpenSim/Framework/Communications/Cache/LibraryRootFolder.cs @@ -171,6 +171,7 @@ namespace OpenSim.Framework.Communications.Cache item.NextPermissions = (uint)config.GetLong("nextPermissions", 0x7FFFFFFF); item.EveryOnePermissions = (uint)config.GetLong("everyonePermissions", 0x7FFFFFFF); item.BasePermissions = (uint)config.GetLong("basePermissions", 0x7FFFFFFF); + item.Flags = (uint)config.GetInt("flags", 0); if (libraryFolders.ContainsKey(item.Folder)) { -- cgit v1.1