Added the SetPartText access method to SceneObjectGroup to set the text of member SceneObjectParts.

afrisby
MW 2007-08-13 14:39:12 +00:00
parent 7fbc3266df
commit dc24317678
1 changed files with 35 additions and 17 deletions

View File

@ -112,7 +112,7 @@ namespace OpenSim.Region.Environment.Scenes
protected bool m_isSelected = false; protected bool m_isSelected = false;
public bool IsSelected public bool IsSelected
{ {
get{ return m_isSelected;} get { return m_isSelected; }
set { m_isSelected = value; } set { m_isSelected = value; }
} }
@ -466,6 +466,24 @@ namespace OpenSim.Region.Environment.Scenes
} }
} }
public void SetPartText(string text, uint localID)
{
SceneObjectPart part = this.GetChildPrim(localID);
if (part != null)
{
part.Text = text;
}
}
public void SetPartText(string text, LLUUID partID)
{
SceneObjectPart part = this.GetChildPrim(partID);
if (part != null)
{
part.Text = text;
}
}
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -740,13 +758,13 @@ namespace OpenSim.Region.Environment.Scenes
/// <param name="part"></param> /// <param name="part"></param>
internal void SendPartFullUpdate(IClientAPI remoteClient, SceneObjectPart part) internal void SendPartFullUpdate(IClientAPI remoteClient, SceneObjectPart part)
{ {
if( m_rootPart == part ) if (m_rootPart == part)
{ {
part.SendFullUpdateToClient( remoteClient, Pos ); part.SendFullUpdateToClient(remoteClient, Pos);
} }
else else
{ {
part.SendFullUpdateToClient( remoteClient ); part.SendFullUpdateToClient(remoteClient);
} }
} }