From 36ba15e7f9f6b90b6a30a1f8bea415848a03337e Mon Sep 17 00:00:00 2001 From: katzsmile Date: Wed, 15 Sep 2010 23:19:15 +0400 Subject: [PATCH] Displaying map theater name in open/save dialogs --- OpenRA.Editor/MapSelect.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Editor/MapSelect.cs b/OpenRA.Editor/MapSelect.cs index 0613151560..f8a77ac24e 100644 --- a/OpenRA.Editor/MapSelect.cs +++ b/OpenRA.Editor/MapSelect.cs @@ -5,6 +5,7 @@ using System.Data; using System.Drawing; using System.Linq; using System.Text; +using OpenRA.FileFormats; using System.Windows.Forms; using System.IO; @@ -27,7 +28,9 @@ namespace OpenRA.Editor { ListViewItem map1 = new ListViewItem(subDirectory.Name); map1.ImageIndex = 0; - MapList.Items.Add(map1); + MapList.Items.Add(map1); + var map = new Map(new Folder(txtPath.Text + "\\" + subDirectory.Name)); + map1.SubItems.Add(map.Theater); } MapList.Items[0].Selected = true;