From 179695909a8967bcdb092720a19c264d52fb4515 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Thu, 15 Nov 2007 07:32:24 +0000 Subject: * Implemented the little friendly pop tooltip messages that appear when you hover your mouse over prim with the object name, description, ownerid.. etc. --- .../Region/Environment/Scenes/SceneObjectPart.cs | 34 +++++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 70b8829..727ebb0 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs @@ -51,13 +51,18 @@ namespace OpenSim.Region.Environment.Scenes [XmlIgnore] public PhysicsActor PhysActor = null; protected Dictionary TaskInventory = new Dictionary(); - + public LLUUID LastOwnerID; public LLUUID OwnerID; public LLUUID GroupID; - public LLUUID LastOwnerID; + public int OwnershipCost; + public byte ObjectSaleType; + public int SalePrice; + public uint Category; + public Int32 CreationDate; public uint ParentID = 0; + public uint OwnerMask = FULL_MASK_PERMISSIONS; public uint NextOwnerMask = FULL_MASK_PERMISSIONS; public uint GroupMask = FULL_MASK_PERMISSIONS; @@ -68,6 +73,7 @@ namespace OpenSim.Region.Environment.Scenes [XmlIgnore] public uint TimeStampFull = 0; [XmlIgnore] public uint TimeStampTerse = 0; + [XmlIgnore] public uint TimeStampLastActivity = 0; // Will be used for AutoReturn protected SceneObjectGroup m_parentGroup; @@ -418,7 +424,13 @@ namespace OpenSim.Region.Environment.Scenes UUID = LLUUID.Random(); LocalID = (uint) (localID); Shape = shape; - + // Todo: Add More Object Parameter from above! + OwnershipCost = 0; + ObjectSaleType = (byte)0; + SalePrice = 0; + Category = (uint)0; + LastOwnerID = CreatorID; + // End Todo: /// GroupPosition = groupPosition; OffsetPosition = offsetPosition; RotationOffset = rotationOffset; @@ -467,8 +479,14 @@ namespace OpenSim.Region.Environment.Scenes LastOwnerID = lastOwnerID; UUID = LLUUID.Random(); LocalID = (uint) (localID); + // Todo: Add More parameters from above Shape = shape; - + OwnershipCost = 0; + ObjectSaleType = (byte)0; + SalePrice = 0; + Category = (uint)0; + // End Todo: /// + LastOwnerID = CreatorID; OffsetPosition = position; RotationOffset = rotation; ObjectFlags = flags; @@ -538,6 +556,14 @@ namespace OpenSim.Region.Environment.Scenes dupe.AngularVelocity = new LLVector3(0, 0, 0); dupe.ObjectFlags = ObjectFlags; + dupe.OwnershipCost = OwnershipCost; + dupe.ObjectSaleType = ObjectSaleType; + dupe.SalePrice = SalePrice; + dupe.Category = Category; + + // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated. + dupe.LastOwnerID = ObjectOwner; + byte[] extraP = new byte[Shape.ExtraParams.Length]; Array.Copy(Shape.ExtraParams, extraP, extraP.Length); dupe.Shape.ExtraParams = extraP; -- cgit v1.1