Allow support powers to define a poster image for beacons.

This commit is contained in:
Paul Chote
2014-03-20 22:12:13 +13:00
parent 1f9dd53b4d
commit 94e30503a7
3 changed files with 26 additions and 5 deletions

View File

@@ -34,6 +34,8 @@ namespace OpenRA.Mods.RA
public readonly bool DisplayBeacon = false;
public readonly int BeaconDuration = 10 * 25;
public readonly string BeaconPalettePrefix = "player";
public readonly string BeaconPoster = null;
public readonly string BeaconPosterPalette = "chrome";
public readonly bool DisplayRadarPing = false;
public readonly string OrderName;
@@ -72,7 +74,9 @@ namespace OpenRA.Mods.RA
order.Player,
order.TargetLocation.CenterPosition,
Info.BeaconDuration,
Info.BeaconPalettePrefix);
Info.BeaconPalettePrefix,
Info.BeaconPoster,
Info.BeaconPosterPalette);
self.World.Add(beacon);
}