per tileset configurable selection overlays
don't use a white one for more contrast on snow, closes #2050
This commit is contained in:
@@ -30,9 +30,10 @@ namespace OpenRA.Mods.RA.Orders
|
||||
{
|
||||
Producer = producer;
|
||||
Building = name;
|
||||
var tileset = producer.World.TileSet.Id.ToLower();
|
||||
BuildingInfo = Rules.Info[Building].Traits.Get<BuildingInfo>();
|
||||
|
||||
buildOk = SequenceProvider.GetSequence("overlay", "build-valid").GetSprite(0);
|
||||
buildOk = SequenceProvider.GetSequence("overlay", "build-valid-{0}".F(tileset)).GetSprite(0);
|
||||
buildBlocked = SequenceProvider.GetSequence("overlay", "build-invalid").GetSprite(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -178,7 +178,8 @@ namespace OpenRA.Mods.RA
|
||||
this.sourceLocation = sourceLocation;
|
||||
this.range = (power.Info as ChronoshiftPowerInfo).Range;
|
||||
|
||||
validTile = SequenceProvider.GetSequence("overlay", "target-valid").GetSprite(0);
|
||||
var tileset = manager.self.World.TileSet.Id.ToLower();
|
||||
validTile = SequenceProvider.GetSequence("overlay", "target-valid-{0}".F(tileset)).GetSprite(0);
|
||||
invalidTile = SequenceProvider.GetSequence("overlay", "target-invalid").GetSprite(0);
|
||||
sourceTile = SequenceProvider.GetSequence("overlay", "target-select").GetSprite(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user