public LoadingScreen(GameScreen screenToLoad, TimeSpan otherTransOffTime)
            : base(VolumetricRenderer.Game.ScreenManager.SpriteBatch)
        {
            this.screenToLoad = screenToLoad;

            if (otherTransOffTime.TotalSeconds > 0.25)
                TransitionOnTime = otherTransOffTime;
            else
                TransitionOnTime = TimeSpan.FromSeconds(0.25);
        }
 /// <summary>
 /// Removes a screen from the screen manager.
 /// </summary>
 /// <param name="screen">Screen to remove.</param>
 public virtual void RemoveScreen(GameScreen screen)
 {
     screen.UnloadContent();
     screens.Remove(screen);
     screensToUpdate.Remove(screen);
 }
Beispiel #3
0
 /// <summary>
 /// Removes a screen from the screen manager.
 /// </summary>
 /// <param name="screen">Screen to remove.</param>
 public virtual void RemoveScreen(GameScreen screen)
 {
     screen.UnloadContent();
     screens.Remove(screen);
     screensToUpdate.Remove(screen);
 }
 /// <summary>
 /// Adds a new screen to the screen manager.
 /// </summary>
 /// <param name="screen">Screen to add.</param>
 public virtual void AddScreen(GameScreen screen)
 {
     screen.ScreenManager = this;
     screen.LoadContent();
     screens.Add(screen);
 }
Beispiel #5
0
 /// <summary>
 /// Adds a new screen to the screen manager.
 /// </summary>
 /// <param name="screen">Screen to add.</param>
 public virtual void AddScreen(GameScreen screen)
 {
     screen.ScreenManager = this;
     screen.LoadContent();
     screens.Add(screen);
 }