Merge pull request #11881 from reaperrr/always-visible-bar

Allow keeping empty selection bars visible
This commit is contained in:
Oliver Brakmann
2016-08-26 14:56:29 +02:00
committed by GitHub
11 changed files with 13 additions and 2 deletions

View File

@@ -53,7 +53,7 @@ namespace OpenRA.Graphics
foreach (var extraBar in actor.TraitsImplementing<ISelectionBar>())
{
var value = extraBar.GetValue();
if (value != 0)
if (value != 0 || extraBar.DisplayWhenEmpty)
{
start.Y += (int)(4 / wr.Viewport.Zoom);
end.Y += (int)(4 / wr.Viewport.Zoom);