Ejemplo n.º 1
0
        /// <summary>
        /// Activates the loading screen.
        /// </summary>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
            params GameScreen[] screensToLoad)
        {
            // Tell all the current screens to transition off.
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(screenManager,
                                                            loadingIsSlow,
                                                            screensToLoad);

            screenManager.AddScreen(loadingScreen);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Event handler for when the user selects ok on the "are you sure
 /// you want to quit" message box. This uses the loading screen to
 /// transition from the game back to the main menu screen.
 /// </summary>
 void ConfirmQuitMessageBoxAccepted(object sender, EventArgs e)
 {
     IsPaused = false;
     LoadingScreen.Load(ScreenManager, false, new BackgroundScreen(),
                        new MainMenuScreen());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void LaunchTest2(object sender, EventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, new ScottTest2());
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void LaunchTest3(object sender, EventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, new GregTestMultiPlanes());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void LaunchTest2(object sender, EventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, new GregTestPlaneWithHoles());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void LaunchTest1(object sender, EventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, new GregTestFlatPlane());
     //LoadingScreen.Load(ScreenManager, true, new GameplayScreen());
 }