Include resources in the editor preview.
This commit is contained in:
@@ -202,7 +202,7 @@ namespace OpenRA.Editor
|
||||
p.Visible = true;
|
||||
p.ResumeLayout();
|
||||
}
|
||||
pmMiniMap.Image = Minimap.TerrainBitmap(surface1.Map, true);
|
||||
pmMiniMap.Image = Minimap.AddStaticResources(surface1.Map, Minimap.TerrainBitmap(surface1.Map, true));
|
||||
}
|
||||
|
||||
static Bitmap RenderTemplate(TileSet ts, ushort n, Palette p)
|
||||
@@ -491,7 +491,7 @@ namespace OpenRA.Editor
|
||||
|
||||
private void OnSurfaceClicked(object sender, EventArgs e)
|
||||
{
|
||||
pmMiniMap.Image = Minimap.TerrainBitmap(surface1.Map, true);
|
||||
pmMiniMap.Image = Minimap.AddStaticResources(surface1.Map, Minimap.TerrainBitmap(surface1.Map, true));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,9 +59,7 @@ namespace OpenRA.Editor
|
||||
pbMinimap.Image = null;
|
||||
try
|
||||
{
|
||||
var b = Minimap.TerrainBitmap(map, true);
|
||||
Minimap.AddStaticResources(map, b);
|
||||
pbMinimap.Image = b;
|
||||
pbMinimap.Image = Minimap.AddStaticResources(map, Minimap.TerrainBitmap(map, true));
|
||||
}
|
||||
catch (Exception ed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user