C# Class NScumm.MonoGame.BackgroundScreen

The background screen sits behind all the other menu screens. It draws a background image that remains fixed in place regardless of whatever transitions the screens on top of it may be doing.
This public class is somewhat similar to one of the same name in the GameStateManagement sample.
Inheritance: GameScreen
Exibir arquivo Open project: scemino/nscumm

Public Methods

Method Description
BackgroundScreen ( ) : System

Construct a new BackgroundScreen object.

Draw ( GameTime gameTime ) : void

Draws the background screen.

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

Updates the background screen. Unlike most screens, this should not transition off even if it has been covered by another screen: it is supposed to be covered, after all! This overload forces the coveredByOtherScreen parameter to false in order to stop the base Update method wanting to transition off.

Method Details

BackgroundScreen() public method

Construct a new BackgroundScreen object.
public BackgroundScreen ( ) : System
return System

Draw() public method

Draws the background screen.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Update() public method

Updates the background screen. Unlike most screens, this should not transition off even if it has been covered by another screen: it is supposed to be covered, after all! This overload forces the coveredByOtherScreen parameter to false in order to stop the base Update method wanting to transition off.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
return void