Add fade in/out effects to RA and TS.

The palette effect interacts badly with the multiplicative blending in D2K.
This commit is contained in:
Paul Chote
2014-05-18 18:09:31 +12:00
parent b3313be217
commit cfdbc06a31
4 changed files with 30 additions and 28 deletions

View File

@@ -16,12 +16,13 @@ using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
[Desc("Fades the world from/to black at the start/end of the game, and can (optionally) desaturate the world")]
public class MenuPaletteEffectInfo : ITraitInfo
{
[Desc("Time (in ticks) to fade between states")]
public readonly int FadeLength = 10;
[Desc("Effect style to fade into")]
[Desc("Effect style to fade to. Accepts values of None or Desaturated")]
public readonly MenuPaletteEffect.EffectType Effect = MenuPaletteEffect.EffectType.None;
public object Create(ActorInitializer init) { return new MenuPaletteEffect(this); }