Improve visibility of building placement preview.

This commit is contained in:
Paul Chote
2019-05-18 09:02:35 +00:00
committed by reaperrr
parent cdad07d172
commit 3f9e4a313f
19 changed files with 79 additions and 17 deletions

View File

@@ -33,10 +33,10 @@ namespace OpenRA.Mods.Common.Traits
public readonly bool SequencePaletteIsPlayerPalette = true;
[Desc("Footprint types to draw underneath the actor preview.")]
public readonly PlaceBuildingCellType FootprintUnderPreview = PlaceBuildingCellType.None;
public readonly PlaceBuildingCellType FootprintUnderPreview = PlaceBuildingCellType.Valid | PlaceBuildingCellType.LineBuild;
[Desc("Footprint types to draw above the actor preview.")]
public readonly PlaceBuildingCellType FootprintOverPreview = PlaceBuildingCellType.Valid | PlaceBuildingCellType.LineBuild | PlaceBuildingCellType.Invalid;
public readonly PlaceBuildingCellType FootprintOverPreview = PlaceBuildingCellType.Invalid;
protected override IPlaceBuildingPreview CreatePreview(WorldRenderer wr, ActorInfo ai, TypeDictionary init)
{