Beispiel #1
0
 public void ChangeScreenCrossFade(Screen screen, int lengthInMilliseconds)
 {
     screen.Initialize();
     transitionToScreen = screen;
     transition         = new TransitionCrossFade(lengthInMilliseconds);
 }
Beispiel #2
0
 public void ChangeScreenPush(Screen screen, int lengthInMilliseconds, Direction pushDirection)
 {
     screen.Initialize();
     transitionToScreen = screen;
     transition         = new TransitionPush(lengthInMilliseconds, pushDirection);
 }
Beispiel #3
0
 public void ChangeScreenFade(Screen screen, int lengthInMilliseconds, Color fadeToColor)
 {
     screen.Initialize();
     transitionToScreen = screen;
     transition         = new TransitionFade(lengthInMilliseconds, fadeToColor);
 }
Beispiel #4
0
 public void ChangeScreenSlide(Screen screen, int lengthInMilliseconds, Direction slideDirection)
 {
     screen.Initialize();
     transitionToScreen = screen;
     transition         = new TransitionSlide(lengthInMilliseconds, slideDirection);
 }
Beispiel #5
0
 public void ChangeScreenTransition(Screen screen, ScreenTransition transition)
 {
     screen.Initialize();
     transitionToScreen = screen;
     this.transition    = transition;
 }