Fix StyleCop warnings in OpenRA.Mods.RA
This commit is contained in:
@@ -63,10 +63,10 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
if (textWidth != cachedWidth)
|
||||
{
|
||||
label.Bounds.Width = textWidth;
|
||||
widget.Bounds.Width = 2*label.Bounds.X + textWidth;
|
||||
widget.Bounds.Width = 2 * label.Bounds.X + textWidth;
|
||||
}
|
||||
|
||||
widget.Bounds.Width = Math.Max(teamWidth + 2*labelMargin, label.Bounds.Right + labelMargin);
|
||||
widget.Bounds.Width = Math.Max(teamWidth + 2 * labelMargin, label.Bounds.Right + labelMargin);
|
||||
team.Bounds.Width = widget.Bounds.Width;
|
||||
};
|
||||
|
||||
@@ -78,5 +78,4 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
||||
team.IsVisible = () => playerTeam > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user