Thank you kindly, Fly-Man- for a patch that:
Adding more SL likeness for Email module in CORE. I've added some SL likeness to the Email module so that it looks more like emails going out in the same standard as SL uses0.6.5-rc1
parent
7e731b024a
commit
c84abfa9b1
|
@ -205,6 +205,9 @@ namespace OpenSim.Region.CoreModules.Scripting.EmailModules
|
||||||
if (part != null)
|
if (part != null)
|
||||||
{
|
{
|
||||||
ObjectRegionName = s.RegionInfo.RegionName;
|
ObjectRegionName = s.RegionInfo.RegionName;
|
||||||
|
uint localX = (s.RegionInfo.RegionLocX * 256);
|
||||||
|
uint localY = (s.RegionInfo.RegionLocY * 256);
|
||||||
|
ObjectRegionName = ObjectRegionName + " (" + localX + ", " + localY + ")";
|
||||||
return part;
|
return part;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -216,15 +219,24 @@ namespace OpenSim.Region.CoreModules.Scripting.EmailModules
|
||||||
private void resolveNamePositionRegionName(UUID objectID, out string ObjectName, out string ObjectAbsolutePosition, out string ObjectRegionName)
|
private void resolveNamePositionRegionName(UUID objectID, out string ObjectName, out string ObjectAbsolutePosition, out string ObjectRegionName)
|
||||||
{
|
{
|
||||||
string m_ObjectRegionName;
|
string m_ObjectRegionName;
|
||||||
|
int objectLocX;
|
||||||
|
int objectLocY;
|
||||||
|
int objectLocZ;
|
||||||
SceneObjectPart part = findPrim(objectID, out m_ObjectRegionName);
|
SceneObjectPart part = findPrim(objectID, out m_ObjectRegionName);
|
||||||
if (part != null)
|
if (part != null)
|
||||||
{
|
{
|
||||||
ObjectAbsolutePosition = part.AbsolutePosition.ToString();
|
objectLocX = (int)part.AbsolutePosition.X;
|
||||||
|
objectLocY = (int)part.AbsolutePosition.Y;
|
||||||
|
objectLocZ = (int)part.AbsolutePosition.Z;
|
||||||
|
ObjectAbsolutePosition = "(" + objectLocX + ", " + objectLocY + ", " + objectLocZ + ")";
|
||||||
ObjectName = part.Name;
|
ObjectName = part.Name;
|
||||||
ObjectRegionName = m_ObjectRegionName;
|
ObjectRegionName = m_ObjectRegionName;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ObjectAbsolutePosition = part.AbsolutePosition.ToString();
|
objectLocX = (int)part.AbsolutePosition.X;
|
||||||
|
objectLocY = (int)part.AbsolutePosition.Y;
|
||||||
|
objectLocZ = (int)part.AbsolutePosition.Z;
|
||||||
|
ObjectAbsolutePosition = "(" + objectLocX + ", " + objectLocY + ", " + objectLocZ + ")";
|
||||||
ObjectName = part.Name;
|
ObjectName = part.Name;
|
||||||
ObjectRegionName = m_ObjectRegionName;
|
ObjectRegionName = m_ObjectRegionName;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue