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
@@ -286,6 +286,8 @@ namespace OpenRA.Widgets
|
||||
return TogglePixelDouble();
|
||||
else if (key == Game.Settings.Keys.ToggleMuteKey)
|
||||
return ToggleMute();
|
||||
else if (key == Game.Settings.Keys.TogglePlayerStanceColorsKey)
|
||||
return TogglePlayerStanceColors();
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -342,6 +344,7 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
Game.Settings.Graphics.PixelDouble ^= true;
|
||||
worldRenderer.Viewport.Zoom = Game.Settings.Graphics.PixelDouble ? 2 : 1;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -362,5 +365,12 @@ namespace OpenRA.Widgets
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TogglePlayerStanceColors()
|
||||
{
|
||||
Game.Settings.Game.UsePlayerStanceColors ^= true;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user