Свойство | Type | Description | |
---|---|---|---|
music | Song |
Méthode | Description | |
---|---|---|
Activate ( bool instancePreserved ) : 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.
|
|
BackgroundScreen ( ) : System |
Constructor.
|
|
Draw ( |
Draws the background screen.
|
|
Unload ( ) : 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 Activate ( bool instancePreserved ) : void | ||
instancePreserved | bool | |
Résultat | void |
public Draw ( |
||
gameTime | ||
Résultat | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
Résultat | void |