minor: Increase size of parcel name field in "land show" console command output. Construct table using CDT rather than string formats
parent
14569992e1
commit
aa2fb1ec25
|
@ -35,9 +35,14 @@ namespace OpenSim.Framework.Console
|
||||||
public static class ConsoleDisplayUtil
|
public static class ConsoleDisplayUtil
|
||||||
{
|
{
|
||||||
public const int CoordTupleSize = 11;
|
public const int CoordTupleSize = 11;
|
||||||
public const int EstateNameSize = 20;
|
|
||||||
public const int PortSize = 5;
|
public const int PortSize = 5;
|
||||||
|
|
||||||
|
public const int EstateNameSize = 20;
|
||||||
|
public const int ParcelNameSize = 40;
|
||||||
public const int RegionNameSize = 20;
|
public const int RegionNameSize = 20;
|
||||||
|
public const int UserNameSize = 35;
|
||||||
|
|
||||||
public const int UuidSize = 36;
|
public const int UuidSize = 36;
|
||||||
|
public const int VectorSize = 15;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2088,27 +2088,27 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
|
|
||||||
private void AppendParcelsSummaryReport(StringBuilder report)
|
private void AppendParcelsSummaryReport(StringBuilder report)
|
||||||
{
|
{
|
||||||
report.AppendFormat("Land information for {0}\n", m_scene.RegionInfo.RegionName);
|
report.AppendFormat("Land information for {0}\n", m_scene.Name);
|
||||||
report.AppendFormat(
|
|
||||||
"{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n",
|
ConsoleDisplayTable cdt = new ConsoleDisplayTable();
|
||||||
"Parcel Name",
|
cdt.AddColumn("Parcel Name", ConsoleDisplayUtil.ParcelNameSize);
|
||||||
"Local ID",
|
cdt.AddColumn("ID", 3);
|
||||||
"Area",
|
cdt.AddColumn("Area", 6);
|
||||||
"Starts",
|
cdt.AddColumn("Starts", ConsoleDisplayUtil.VectorSize);
|
||||||
"Ends",
|
cdt.AddColumn("Ends", ConsoleDisplayUtil.VectorSize);
|
||||||
"Owner");
|
cdt.AddColumn("Owner", ConsoleDisplayUtil.UserNameSize);
|
||||||
|
|
||||||
lock (m_landList)
|
lock (m_landList)
|
||||||
{
|
{
|
||||||
foreach (ILandObject lo in m_landList.Values)
|
foreach (ILandObject lo in m_landList.Values)
|
||||||
{
|
{
|
||||||
LandData ld = lo.LandData;
|
LandData ld = lo.LandData;
|
||||||
|
cdt.AddRow(
|
||||||
report.AppendFormat(
|
|
||||||
"{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n",
|
|
||||||
ld.Name, ld.LocalID, ld.Area, lo.StartPoint, lo.EndPoint, m_userManager.GetUserName(ld.OwnerID));
|
ld.Name, ld.LocalID, ld.Area, lo.StartPoint, lo.EndPoint, m_userManager.GetUserName(ld.OwnerID));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
report.Append(cdt.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AppendParcelReport(StringBuilder report, ILandObject lo)
|
private void AppendParcelReport(StringBuilder report, ILandObject lo)
|
||||||
|
|
Loading…
Reference in New Issue