Show disabled HitShapes in gray

Instead of disabling their debug overlay entirely.
This commit is contained in:
reaperrr
2021-05-30 20:54:33 +02:00
committed by Paul Chote
parent 7356f2506b
commit 6d55161043
7 changed files with 38 additions and 27 deletions

View File

@@ -69,8 +69,7 @@ namespace OpenRA.Mods.Common.Traits
yield return new LineAnnotationRenderable(self.CenterPosition, self.CenterPosition + height, 1, Color.Orange);
}
var activeShapes = shapes.Where(Exts.IsTraitEnabled);
foreach (var s in activeShapes)
foreach (var s in shapes)
foreach (var r in s.RenderDebugOverlay(self, wr))
yield return r;