Reorganise ResourceLayer implementation.

This commit is contained in:
Paul Chote
2013-12-06 17:56:46 +13:00
parent 0b5b3b22b4
commit 410cd1c7b1
16 changed files with 238 additions and 116 deletions

View File

@@ -77,7 +77,7 @@ namespace OpenRA.Editor
public static ResourceTemplate RenderResourceType(ResourceTypeInfo info, string[] exts, Palette p)
{
var image = info.SpriteNames[0];
var image = info.EditorSprite;
using (var s = FileSystem.OpenWithExts(image, exts))
{
// TODO: Do this properly