Added 2 settings for unit health bars: always show unit health, and team health bar colors
This commit is contained in:
@@ -56,6 +56,9 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
if (key == ks.ToSelectionKey)
|
||||
return ToSelection();
|
||||
|
||||
if (key == ks.ToggleStatusBarsKey)
|
||||
return ToggleStatusBars();
|
||||
|
||||
// Put all functions that aren't unit-specific before this line!
|
||||
if (!world.Selection.Actors.Any())
|
||||
return false;
|
||||
@@ -217,5 +220,11 @@ namespace OpenRA.Mods.RA.Widgets
|
||||
worldRenderer.Viewport.Center(world.Selection.Actors);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ToggleStatusBars()
|
||||
{
|
||||
Game.Settings.Game.AlwaysShowStatusBars ^= true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user