Method | Description | |
---|---|---|
BackgroundScreen ( ) : System |
Constructs a new BackgroundScreen that draws the Texture "TitleScreen" to the entire screen.
|
|
BackgroundScreen ( String imageName ) : System |
Constructs a new BackgroundScreen that draws the given Texture2D to the entire screen.
|
|
Draw ( |
Draws the background screen.
|
|
HandleInput ( |
||
LoadContent ( ) : void |
Loads graphics content for this screen. The background texture is quite big, so we use our own local ContentManager to load it. This allows us to unload before going from the menus into the game itself, wheras if we used the shared ContentManager provided by the Game class, the content would remain loaded forever.
|
|
UnloadContent ( ) : void |
Unloads graphics content for this screen.
|
|
Update ( |
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 BackgroundScreen ( String imageName ) : System | ||
imageName | String | XNA nice name of texture to load |
return | System |
public Draw ( |
||
gameTime | ||
return | void |
public HandleInput ( |
||
input | ||
return | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
return | void |