Allow keeping empty selection bars visible

This commit is contained in:
reaperrr
2016-05-15 22:31:44 +02:00
parent af8bd461c7
commit 39034b0de9
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);