* Again, FileSystemObject reports filename.

* SimpleApp now featuring spinning box with spinning parts.
* Damn. That's cool.
afrisby
lbsa71 2007-08-15 17:15:41 +00:00
parent c47bca94d2
commit 2fe9b8139c
4 changed files with 17 additions and 7 deletions

View File

@ -858,5 +858,11 @@ namespace OpenSim.Region.Environment.Scenes
} }
return null; return null;
} }
public void UpdateText( string text )
{
m_rootPart.Text = text;
m_rootPart.ScheduleTerseUpdate();
}
} }
} }

View File

@ -279,6 +279,7 @@ namespace OpenSim.Region.Environment.Scenes
public void SetParent(SceneObjectGroup parent) public void SetParent(SceneObjectGroup parent)
{ {
m_parentGroup = parent; m_parentGroup = parent;
} }
#region Copying #region Copying

View File

@ -41,6 +41,8 @@ namespace SimpleApp
AddPart(new RotatingWheel(regionHandle, this, ownerID, scene.PrimIDAllocate(), pos, new LLVector3(0, 0, 1f))); AddPart(new RotatingWheel(regionHandle, this, ownerID, scene.PrimIDAllocate(), pos, new LLVector3(0, 0, 1f)));
AddPart(new RotatingWheel(regionHandle, this, ownerID, scene.PrimIDAllocate(), pos, new LLVector3(0, 0, -1f))); AddPart(new RotatingWheel(regionHandle, this, ownerID, scene.PrimIDAllocate(), pos, new LLVector3(0, 0, -1f)));
UpdateParentIDs();
} }
} }
} }

View File

@ -7,20 +7,21 @@ using OpenSim.Framework.Types;
using System.Timers; using System.Timers;
using System.Diagnostics; using System.Diagnostics;
using System.IO; using System.IO;
using Primitive=OpenSim.Region.Environment.Scenes.Primitive; using Primitive = OpenSim.Region.Environment.Scenes.Primitive;
namespace SimpleApp namespace SimpleApp
{ {
public class FileSystemObject : SceneObjectGroup public class FileSystemObject : SceneObjectGroup
{ {
public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos) public FileSystemObject(Scene world, FileInfo fileInfo, LLVector3 pos)
: base( world, world.RegionInfo.RegionHandle, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default ) : base(world, world.RegionInfo.RegionHandle, LLUUID.Zero, world.NextLocalId, pos, BoxShape.Default)
{ {
float size = (float)Math.Pow((double)fileInfo.Length, (double) 1 / 3) / 5; float size = (float)Math.Pow((double)fileInfo.Length, (double)1 / 3) / 5;
// rootPrimitive.ResizeGoup(new LLVector3(size, size, size)); // rootPrimitive.ResizeGoup(new LLVector3(size, size, size));
// rootPrimitive.Text = fileInfo.Name; Text = fileInfo.Name;
ScheduleGroupForFullUpdate();
} }
public override void Update() public override void Update()