Replace the "land show" method with the better one from 0.8.

LSLKeyTest
Melanie Thielker 2016-04-28 16:13:23 +02:00
parent 995655c445
commit a01f24e331
1 changed files with 25 additions and 16 deletions

View File

@ -2237,30 +2237,39 @@ namespace OpenSim.Region.CoreModules.World.Land
}
private void AppendParcelsSummaryReport(StringBuilder report)
{
report.AppendFormat("Land information for {0}\n", m_scene.RegionInfo.RegionName);
report.AppendFormat(
"{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n",
"Parcel Name",
"Local ID",
"Area",
"AABBMin",
"AABBMax",
"Owner");
{
report.AppendFormat("Land information for {0}\n", m_scene.Name);
ConsoleDisplayTable cdt = new ConsoleDisplayTable();
cdt.AddColumn("Parcel Name", ConsoleDisplayUtil.ParcelNameSize);
cdt.AddColumn("ID", 3);
cdt.AddColumn("Area", 6);
cdt.AddColumn("Starts", ConsoleDisplayUtil.VectorSize);
cdt.AddColumn("Ends", ConsoleDisplayUtil.VectorSize);
cdt.AddColumn("Owner", ConsoleDisplayUtil.UserNameSize);
lock (m_landList)
{
foreach (ILandObject lo in m_landList.Values)
{
LandData ld = lo.LandData;
report.AppendFormat(
"{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n",
ld.Name, ld.LocalID, ld.Area, ld.AABBMin, ld.AABBMax, m_userManager.GetUserName(ld.OwnerID));
string ownerName;
if (ld.IsGroupOwned)
{
GroupRecord rec = m_groupManager.GetGroupRecord(ld.GroupID);
ownerName = (rec != null) ? rec.GroupName : "Unknown Group";
}
else
{
ownerName = m_userManager.GetUserName(ld.OwnerID);
}
cdt.AddRow(
ld.Name, ld.LocalID, ld.Area, lo.StartPoint, lo.EndPoint, ownerName);
}
}
}
report.Append(cdt.ToString());
}
private void AppendParcelReport(StringBuilder report, ILandObject lo)
{