added contrast to range circle

This commit is contained in:
Sascha Biedermann
2013-03-20 18:53:28 +01:00
parent 7c31a8f28e
commit 35f4230984
4 changed files with 30 additions and 10 deletions

View File

@@ -199,6 +199,16 @@ namespace OpenRA.Graphics
}
}
public void DrawRangeCircleWithContrast(Color fg, float2 location, float range, Color bg, int offset)
{
if (offset > 0) {
DrawRangeCircle(bg, location, range + (float) offset/Game.CellSize);
DrawRangeCircle(bg, location, range - (float) offset/Game.CellSize);
}
DrawRangeCircle(fg, location, range);
}
public void RefreshPalette()
{
palette.Update( world.WorldActor.TraitsImplementing<IPaletteModifier>() );