Method | Description | |
---|---|---|
AddScreen ( |
Adds a new screen to the screen manager.
|
|
Draw ( |
Tells each screen to draw itself.
|
|
Initialize ( ) : void |
Initializes the screen manager component.
|
|
RemoveScreen ( |
Removes a screen from the screen manager. You should normally use GameScreen.ExitScreen instead of calling this directly, so the screen can gradually transition off rather than just being instantly removed.
|
|
ScreenManager ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic |
Constructs a new screen manager component.
|
|
Update ( |
Allows each screen to run logic.
|
Method | Description | |
---|---|---|
LoadContent ( ) : void |
Load your graphics content.
|
|
UnloadContent ( ) : void |
Unload your graphics content.
|
public AddScreen ( |
||
screen | ||
return | void |
public Draw ( |
||
gameTime | ||
return | void |
public RemoveScreen ( |
||
screen | ||
return | void |
public ScreenManager ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic | ||
game | Microsoft.Xna.Framework.Game | |
return | System.Collections.Generic |
public Update ( |
||
gameTime | ||
return | void |