diff options
author | Melanie Thielker | 2016-04-28 16:13:23 +0200 |
---|---|---|
committer | Melanie Thielker | 2016-04-28 16:13:23 +0200 |
commit | a01f24e331ed3600ec5db680c1f30e2a8a12f9e7 (patch) | |
tree | 0d3b87735f199776dad0c083a3d02de8db28b1a5 | |
parent | Make the SimulatorFeaturesModule nonshared as it ought to be from it's code s... (diff) | |
download | opensim-SC-a01f24e331ed3600ec5db680c1f30e2a8a12f9e7.zip opensim-SC-a01f24e331ed3600ec5db680c1f30e2a8a12f9e7.tar.gz opensim-SC-a01f24e331ed3600ec5db680c1f30e2a8a12f9e7.tar.bz2 opensim-SC-a01f24e331ed3600ec5db680c1f30e2a8a12f9e7.tar.xz |
Replace the "land show" method with the better one from 0.8.
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 5100064..5cd8d5b 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | |||
@@ -2237,30 +2237,39 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
2237 | } | 2237 | } |
2238 | 2238 | ||
2239 | private void AppendParcelsSummaryReport(StringBuilder report) | 2239 | private void AppendParcelsSummaryReport(StringBuilder report) |
2240 | { | 2240 | { |
2241 | report.AppendFormat("Land information for {0}\n", m_scene.RegionInfo.RegionName); | 2241 | report.AppendFormat("Land information for {0}\n", m_scene.Name); |
2242 | report.AppendFormat( | 2242 | |
2243 | "{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n", | 2243 | ConsoleDisplayTable cdt = new ConsoleDisplayTable(); |
2244 | "Parcel Name", | 2244 | cdt.AddColumn("Parcel Name", ConsoleDisplayUtil.ParcelNameSize); |
2245 | "Local ID", | 2245 | cdt.AddColumn("ID", 3); |
2246 | "Area", | 2246 | cdt.AddColumn("Area", 6); |
2247 | "AABBMin", | 2247 | cdt.AddColumn("Starts", ConsoleDisplayUtil.VectorSize); |
2248 | "AABBMax", | 2248 | cdt.AddColumn("Ends", ConsoleDisplayUtil.VectorSize); |
2249 | "Owner"); | 2249 | cdt.AddColumn("Owner", ConsoleDisplayUtil.UserNameSize); |
2250 | 2250 | ||
2251 | lock (m_landList) | 2251 | lock (m_landList) |
2252 | { | 2252 | { |
2253 | foreach (ILandObject lo in m_landList.Values) | 2253 | foreach (ILandObject lo in m_landList.Values) |
2254 | { | 2254 | { |
2255 | LandData ld = lo.LandData; | 2255 | LandData ld = lo.LandData; |
2256 | 2256 | string ownerName; | |
2257 | report.AppendFormat( | 2257 | if (ld.IsGroupOwned) |
2258 | "{0,-20} {1,-10} {2,-9} {3,-18} {4,-18} {5,-20}\n", | 2258 | { |
2259 | ld.Name, ld.LocalID, ld.Area, ld.AABBMin, ld.AABBMax, m_userManager.GetUserName(ld.OwnerID)); | 2259 | GroupRecord rec = m_groupManager.GetGroupRecord(ld.GroupID); |
2260 | ownerName = (rec != null) ? rec.GroupName : "Unknown Group"; | ||
2261 | } | ||
2262 | else | ||
2263 | { | ||
2264 | ownerName = m_userManager.GetUserName(ld.OwnerID); | ||
2265 | } | ||
2266 | cdt.AddRow( | ||
2267 | ld.Name, ld.LocalID, ld.Area, lo.StartPoint, lo.EndPoint, ownerName); | ||
2260 | } | 2268 | } |
2261 | } | 2269 | } |
2262 | 2270 | ||
2263 | } | 2271 | report.Append(cdt.ToString()); |
2272 | } | ||
2264 | 2273 | ||
2265 | private void AppendParcelReport(StringBuilder report, ILandObject lo) | 2274 | private void AppendParcelReport(StringBuilder report, ILandObject lo) |
2266 | { | 2275 | { |