Draw border around capture area in ProximityCapturable

This commit is contained in:
Oliver Brakmann
2020-02-29 17:03:47 +01:00
committed by Paul Chote
parent c4acd8b361
commit 3904576574
3 changed files with 33 additions and 1 deletions

View File

@@ -12,6 +12,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Mods.Common.Graphics;
using OpenRA.Primitives;
namespace OpenRA.Mods.Common.Traits
{
@@ -53,6 +56,11 @@ namespace OpenRA.Mods.Common.Traits
}
protected override void TickInner(Actor self) { }
protected override IRenderable GetRenderable(Actor self, WorldRenderer wr)
{
return new BorderedRegionRenderable(region, self.Owner.Color, 1, Color.Black, 3);
}
}
public class RegionInit : ValueActorInit<CVec[]>