/// <summary> /// Activates the loading screen. /// </summary> public static void Load(bool loadingIsSlow, params GameScreen[] screensToLoad) { // Tell all the current screens to transition off. GameScreen[] screens = ScreenManager.GetScreens(); // Create and activate the loading screen. LoadingScreen loadingScreen = new LoadingScreen(loadingIsSlow, screensToLoad); ScreenManager.AddScreen(loadingScreen); foreach (GameScreen screen in screens) screen.ExitScreen(); }
/// <summary> /// Event handler for when the Play Game menu entry is selected. /// </summary> void PlayGameMenuEntrySelected(object sender, EventArgs e) { SoundManager.GetSound(_BackgroundMusic).Stop(); LoadingScreen.Load(true, new TestLevel1()); }