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