* Again, FileSystemObject reports filename.
* SimpleApp now featuring spinning box with spinning parts. * Damn. That's cool.afrisby
parent
c47bca94d2
commit
2fe9b8139c
|
@ -858,5 +858,11 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void UpdateText( string text )
|
||||
{
|
||||
m_rootPart.Text = text;
|
||||
m_rootPart.ScheduleTerseUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -279,6 +279,7 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
public void SetParent(SceneObjectGroup parent)
|
||||
{
|
||||
m_parentGroup = parent;
|
||||
|
||||
}
|
||||
|
||||
#region Copying
|
||||
|
|
|
@ -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)));
|
||||
|
||||
UpdateParentIDs();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,20 +7,21 @@ using OpenSim.Framework.Types;
|
|||
using System.Timers;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using Primitive=OpenSim.Region.Environment.Scenes.Primitive;
|
||||
using Primitive = OpenSim.Region.Environment.Scenes.Primitive;
|
||||
|
||||
namespace SimpleApp
|
||||
{
|
||||
public class FileSystemObject : SceneObjectGroup
|
||||
{
|
||||
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;
|
||||
// rootPrimitive.ResizeGoup(new LLVector3(size, size, size));
|
||||
// rootPrimitive.Text = fileInfo.Name;
|
||||
|
||||
|
||||
float size = (float)Math.Pow((double)fileInfo.Length, (double)1 / 3) / 5;
|
||||
// rootPrimitive.ResizeGoup(new LLVector3(size, size, size));
|
||||
Text = fileInfo.Name;
|
||||
ScheduleGroupForFullUpdate();
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
|
|
Loading…
Reference in New Issue