Add OuterRadius debug overlay to Rectangle and Capsule

Circle obviously doesn't need it now (might change with the introduction of offsets, but we can still add it when that happens).
This commit is contained in:
reaperrr
2017-05-24 00:26:15 +02:00
committed by atlimit8
parent 8d69d26542
commit bc5eb66088
2 changed files with 5 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ using System;
using System.Drawing;
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Mods.Common.Graphics;
using OpenRA.Traits;
namespace OpenRA.Mods.Common.HitShapes
@@ -139,6 +140,8 @@ namespace OpenRA.Mods.Common.HitShapes
wcr.DrawPolygon(vertsTop.ToArray(), 1, Color.Yellow);
wcr.DrawPolygon(vertsBottom.ToArray(), 1, Color.Yellow);
}
RangeCircleRenderable.DrawRangeCircle(wr, actorPos, OuterRadius, 1, Color.LimeGreen, 0, Color.LimeGreen);
}
}
}