Method | Description | |
---|---|---|
Activate ( bool instancePreserved ) : void |
Activates the screen. Called when the screen is added to the screen manager or if the game resumes from being paused or tombstoned.
|
|
Deactivate ( ) : void |
Deactivates the screen. Called when the game is being deactivated due to pausing or tombstoning.
|
|
Draw ( |
This is called when the screen should draw itself.
|
|
ExitScreen ( ) : void |
Tells the screen to go away. Unlike ScreenManager.RemoveScreen, which instantly kills the screen, this method respects the transition timings and will give the screen a chance to gradually transition off.
|
|
HandleInput ( |
Allows the screen to handle user input. Unlike Update, this method is only called when the screen is active, and not when some other screen has taken the focus.
|
|
Unload ( ) : void |
Unload content for the screen. Called when the screen is removed from the screen manager.
|
|
Update ( |
Allows the screen to run logic, such as updating the transition position. Unlike HandleInput, this method is called regardless of whether the screen is active, hidden, or in the middle of a transition.
|
Method | Description | |
---|---|---|
UpdateTransition ( |
Helper for updating the screen transition position.
|
public Activate ( bool instancePreserved ) : void | ||
instancePreserved | bool | /// True if the game was preserved during deactivation, false if the screen is just being added or if the game was tombstoned. /// On Xbox and Windows this will always be false. /// |
return | void |
public Draw ( |
||
gameTime | ||
return | void |
public HandleInput ( |
||
gameTime | ||
input | ||
return | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
return | void |