Formatted all files.

Automatically formatted all files via VS. This generally corrects indentation, removes trailing whitespace and corrects misplaced tabs or spaces. Manually tweaked a few files where required.
This commit is contained in:
RoosterDragon
2015-01-04 22:09:32 +00:00
parent 6468c0b6e6
commit a6cda967c2
153 changed files with 740 additions and 698 deletions

View File

@@ -96,7 +96,7 @@ namespace OpenRA.Mods.D2k.Activities
{
state = State.MoveToCarryable;
return this;
}
}
else
{
// We got cancelled
@@ -177,7 +177,7 @@ namespace OpenRA.Mods.D2k.Activities
c.Dropped();
state = State.Done;
return Util.SequenceActivities(new Wait(10), this);
return Util.SequenceActivities(new Wait(10), this);
case State.Done:

View File

@@ -25,7 +25,7 @@ namespace OpenRA.Mods.D2k.Traits
public readonly long Offset = 0;
public readonly bool AllowModifiers = true;
public readonly bool InvertColor = false;
public object Create(ActorInitializer init) { return new PaletteFromR8(this); }
}

View File

@@ -94,7 +94,7 @@ namespace OpenRA.Mods.D2k.Traits
}));
wormsPresent++;
return spawnPoint.CenterPosition;
}

View File

@@ -293,10 +293,10 @@ namespace OpenRA.Mods.D2k.Widgets
var size = font.Measure(tb.Second);
if (ReadyTextStyle == ReadyTextStyleOptions.Solid || orderManager.LocalFrameNumber / 9 % 2 == 0 || tb.Second != ReadyText)
font.DrawTextWithContrast(tb.Second, tb.First - new float2(size.X / 2, 0),
Color.White, Color.Black, 1);
Color.White, Color.Black, 1);
else if (ReadyTextStyle == ReadyTextStyleOptions.AlternatingColor)
font.DrawTextWithContrast(tb.Second, tb.First - new float2(size.X / 2, 0),
ReadyTextAltColor, Color.Black, 1);
ReadyTextAltColor, Color.Black, 1);
}
// Tooltip