Свойство | Type | Description | |
---|---|---|---|
GetEngine | IEngine | ||
GetGame | Core.IO.IGameDescriptor | ||
GetSaveGamePath | string | ||
GetSaveGames | string[] | ||
LoadGame | void | ||
OnExitGame | void | ||
SaveGame | void | ||
UpdateMenus | void |
Méthode | Description | |
---|---|---|
Draw ( |
||
ExitScreen ( ) : void | ||
MainMenuScreen ( |
Constructs a new MainMenu object.
|
|
Update ( |
Updates the screen. This method checks the GameScreen.IsActive property, so the game will stop updating when the pause menu is active, or if you tab away to a different application.
|
Méthode | Description | |
---|---|---|
OnCancel ( ) : void |
When the user cancels the main menu, ask if they want to exit the sample.
|
|
OnSelectEntry ( int entryIndex ) : void |
Responds to user menu selections.
|
Méthode | Description | |
---|---|---|
GetEngine ( ) : IEngine | ||
GetGame ( ) : Core.IO.IGameDescriptor | ||
GetSaveGamePath ( int index ) : string | ||
GetSaveGames ( ) : string[] | ||
LoadGame ( int index ) : void | ||
OnExitGame ( ) : void | ||
SaveGame ( int index ) : void | ||
UpdateMenus ( ) : void |
public Draw ( |
||
gameTime | ||
Résultat | void |
public MainMenuScreen ( |
||
screen | ||
Résultat | System |
protected OnSelectEntry ( int entryIndex ) : void | ||
entryIndex | int | |
Résultat | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
Résultat | void |