Style fixes
This commit is contained in:
@@ -104,10 +104,10 @@ namespace OpenRA.Widgets
|
||||
|
||||
public ChatLine(string owner, string text, uint expiration, Color color)
|
||||
{
|
||||
this.Owner = owner;
|
||||
this.Text = text;
|
||||
this.Expiration = expiration;
|
||||
this.Color = color;
|
||||
Owner = owner;
|
||||
Text = text;
|
||||
Expiration = expiration;
|
||||
Color = color;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -172,7 +172,7 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
var lines = text.Split('\n').ToList();
|
||||
|
||||
for (int i=0; i<lines.Count; i++)
|
||||
for (var i=0; i<lines.Count; i++)
|
||||
{
|
||||
var line = lines[i];
|
||||
var m = font.Measure(line);
|
||||
@@ -185,7 +185,7 @@ namespace OpenRA.Widgets
|
||||
|
||||
while (m.X > width)
|
||||
{
|
||||
int spaceIndex = line.LastIndexOf(' ', start);
|
||||
var spaceIndex = line.LastIndexOf(' ', start);
|
||||
if (spaceIndex == -1)
|
||||
break;
|
||||
bestSpaceIndex = spaceIndex;
|
||||
|
||||
Reference in New Issue
Block a user