aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-03-06 00:40:24 +0000
committerJustin Clark-Casey (justincc)2014-03-06 00:40:24 +0000
commitaa2fb1ec250bab4dde750b29ca2fec4d69add506 (patch)
tree6b1c7f6e589e6f0892d165138fe2bceefd6d29a5 /OpenSim/Region/CoreModules
parentPrevent adding a land object if it overlaps any existing objects that have no... (diff)
downloadopensim-SC_OLD-aa2fb1ec250bab4dde750b29ca2fec4d69add506.zip
opensim-SC_OLD-aa2fb1ec250bab4dde750b29ca2fec4d69add506.tar.gz
opensim-SC_OLD-aa2fb1ec250bab4dde750b29ca2fec4d69add506.tar.bz2
opensim-SC_OLD-aa2fb1ec250bab4dde750b29ca2fec4d69add506.tar.xz
minor: Increase size of parcel name field in "land show" console command output. Construct table using CDT rather than string formats
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 5c20899..dc7242f 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -2088,27 +2088,27 @@ namespace OpenSim.Region.CoreModules.World.Land
2088 2088
2089 private void AppendParcelsSummaryReport(StringBuilder report) 2089 private void AppendParcelsSummaryReport(StringBuilder report)
2090 { 2090 {
2091 report.AppendFormat("Land information for {0}\n", m_scene.RegionInfo.RegionName); 2091 report.AppendFormat("Land information for {0}\n", m_scene.Name);
2092 report.AppendFormat( 2092
2093 "{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n", 2093 ConsoleDisplayTable cdt = new ConsoleDisplayTable();
2094 "Parcel Name", 2094 cdt.AddColumn("Parcel Name", ConsoleDisplayUtil.ParcelNameSize);
2095 "Local ID", 2095 cdt.AddColumn("ID", 3);
2096 "Area", 2096 cdt.AddColumn("Area", 6);
2097 "Starts", 2097 cdt.AddColumn("Starts", ConsoleDisplayUtil.VectorSize);
2098 "Ends", 2098 cdt.AddColumn("Ends", ConsoleDisplayUtil.VectorSize);
2099 "Owner"); 2099 cdt.AddColumn("Owner", ConsoleDisplayUtil.UserNameSize);
2100 2100
2101 lock (m_landList) 2101 lock (m_landList)
2102 { 2102 {
2103 foreach (ILandObject lo in m_landList.Values) 2103 foreach (ILandObject lo in m_landList.Values)
2104 { 2104 {
2105 LandData ld = lo.LandData; 2105 LandData ld = lo.LandData;
2106 2106 cdt.AddRow(
2107 report.AppendFormat(
2108 "{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n",
2109 ld.Name, ld.LocalID, ld.Area, lo.StartPoint, lo.EndPoint, m_userManager.GetUserName(ld.OwnerID)); 2107 ld.Name, ld.LocalID, ld.Area, lo.StartPoint, lo.EndPoint, m_userManager.GetUserName(ld.OwnerID));
2110 } 2108 }
2111 } 2109 }
2110
2111 report.Append(cdt.ToString());
2112 } 2112 }
2113 2113
2114 private void AppendParcelReport(StringBuilder report, ILandObject lo) 2114 private void AppendParcelReport(StringBuilder report, ILandObject lo)