Méthode | Description | |
---|---|---|
CheckKey ( Keys theKey ) : bool | ||
Draw ( |
|
|
Initialize ( ) : void |
Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
|
|
MeasureMenu ( ) : void |
Measures the game menu screen and finds the center.
|
|
MenuComponent ( Microsoft.Xna.Framework.Game game, |
Main method to create all the components of this game screen.
|
|
Update ( |
Allows the game component to update itself.
|
public Draw ( |
||
gameTime | ||
Résultat | void |
public MenuComponent ( Microsoft.Xna.Framework.Game game, |
||
game | Microsoft.Xna.Framework.Game | |
spriteBatch | ||
spriteFont | ||
menuItems | string | |
Résultat | System |
public Update ( |
||
gameTime | Provides a snapshot of timing values. | |
Résultat | void |