Introduce RangeCircleRenderable.

This commit is contained in:
Paul Chote
2014-07-22 17:06:28 +12:00
parent 48bbac5c6f
commit c4bcf0af46
9 changed files with 91 additions and 27 deletions

View File

@@ -199,17 +199,6 @@ namespace OpenRA.Graphics
}
}
public void DrawRangeCircleWithContrast(WPos pos, WRange range, Color fg, Color bg)
{
var wlr = Game.Renderer.WorldLineRenderer;
var oldWidth = wlr.LineWidth;
wlr.LineWidth = 3;
DrawRangeCircle(pos, range, bg);
wlr.LineWidth = 1;
DrawRangeCircle(pos, range, fg);
wlr.LineWidth = oldWidth;
}
public void DrawTargetMarker(Color c, float2 location)
{
var tl = new float2(-1 / Viewport.Zoom, -1 / Viewport.Zoom);