Fix StyleCop warnings in OpenRA.Game
This commit is contained in:
@@ -67,16 +67,16 @@ namespace OpenRA.Widgets
|
||||
var position = RenderOrigin;
|
||||
|
||||
if (VAlign == TextVAlign.Middle)
|
||||
position += new int2(0, (Bounds.Height - textSize.Y)/2);
|
||||
position += new int2(0, (Bounds.Height - textSize.Y) / 2);
|
||||
|
||||
if (VAlign == TextVAlign.Bottom)
|
||||
position += new int2(0, Bounds.Height - textSize.Y);
|
||||
|
||||
if (Align == TextAlign.Center)
|
||||
position += new int2((Bounds.Width - textSize.X)/2, 0);
|
||||
position += new int2((Bounds.Width - textSize.X) / 2, 0);
|
||||
|
||||
if (Align == TextAlign.Right)
|
||||
position += new int2(Bounds.Width - textSize.X,0);
|
||||
position += new int2(Bounds.Width - textSize.X, 0);
|
||||
|
||||
if (WordWrap)
|
||||
text = WidgetUtils.WrapText(text, Bounds.Width, font);
|
||||
@@ -91,4 +91,4 @@ namespace OpenRA.Widgets
|
||||
|
||||
public override Widget Clone() { return new LabelWidget(this); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user