C# Class ScreenManagement.Screens.LoadingScreen

The loading screen coordinates transitions between the menu system and the game itself. Normally one screen will transition off at the same time as the next screen is transitioning on, but for larger transitions that can take a longer time to load their data, we want the menu system to be entirely gone before we start loading the game. This is done as follows: - Tell all the existing screens to transition off. - Activate a loading screen, which will transition on at the same time. - The loading screen watches the state of the previous screens. - When it sees they have finished transitioning off, it activates the real next screen, which may take a long time to load its data. The loading screen will be the only thing displayed while this load is taking place.
Inheritance: GameScreen
Afficher le fichier Open project: giladgray/XNA-ScreenManager Class Usage Examples

Méthodes publiques

Свойство Type Description
screen LoadingScreen

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void

Draws the loading screen.

HandleInput ( InputState input ) : void
Load ( ScreenManager screenManager, bool loadingIsSlow, PlayerIndex controllingPlayer ) : void

Activates the loading screen.

LoadContent ( ) : void
Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Updates the loading screen.

Private Methods

Méthode Description
LoadingScreen ( ScreenManager screenManager, bool loadingIsSlow, GameScreen screensToLoad ) : System

The constructor is private: loading screens should be activated via the static Load method instead.

Method Details

Draw() public méthode

Draws the loading screen.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

HandleInput() public méthode

public HandleInput ( InputState input ) : void
input InputState
Résultat void

Load() public static méthode

Activates the loading screen.
public static Load ( ScreenManager screenManager, bool loadingIsSlow, PlayerIndex controllingPlayer ) : void
screenManager ScreenManager
loadingIsSlow bool
controllingPlayer PlayerIndex
Résultat void

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

Update() public méthode

Updates the loading screen.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
Résultat void

Property Details

screen public_oe static_oe property

public static LoadingScreen,ScreenManagement.Screens screen
Résultat LoadingScreen