Implement player stance colors
Adds an option to display actors on radar and support weapon timers in colors denoting the diplomatic stance toward the player.
This commit is contained in:
committed by
Oliver Brakmann
parent
ce8b03a276
commit
eb795909da
@@ -120,12 +120,12 @@ namespace OpenRA.Mods.RA.Traits
|
||||
return order.OrderString == "Disguise" ? info.Voice : null;
|
||||
}
|
||||
|
||||
public Color RadarColorOverride(Actor self)
|
||||
public Color RadarColorOverride(Actor self, Color color)
|
||||
{
|
||||
if (!Disguised || self.Owner.IsAlliedWith(self.World.RenderPlayer))
|
||||
return self.Owner.Color.RGB;
|
||||
return color;
|
||||
|
||||
return AsPlayer.Color.RGB;
|
||||
return color = Game.Settings.Game.UsePlayerStanceColors ? AsPlayer.PlayerStanceColor(self) : AsPlayer.Color.RGB;
|
||||
}
|
||||
|
||||
public void DisguiseAs(Actor target)
|
||||
|
||||
Reference in New Issue
Block a user