Example #1
0
 public BlackTransition(Game game, BlackTransitionType type, float delayBeforeStart) : base(game)
 {
     m_type             = type;
     m_wipe             = new BoxWipe();
     m_wipe.Coverage    = (type == BlackTransitionType.FromBlack) ? 1.0f : 0.0f;
     m_delayBeforeStart = delayBeforeStart;
 }
Example #2
0
 protected override void OnShutdown()
 {
     Game.Screen.Elements.Remove(m_wipe);
     m_wipe.Dispose();
     m_wipe = null;
     if (m_type == BlackTransitionType.ToBlack)
     {
         Before.Hide();
         After.Reveal();
     }
 }
Example #3
0
 protected override void OnShutdown()
 {
     Game.Screen.Elements.Remove(m_wipe);
     m_wipe.Dispose();
     m_wipe = null;
 }
Example #4
0
 public WipeTransition(Game game, float delayBeforeStart) : base(game)
 {
     m_wipe             = new BoxWipe();
     m_delayBeforeStart = delayBeforeStart;
 }