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