Property | Type | Description | |
---|---|---|---|
GetEngine | IEngine | ||
GetGame | Core.IO.IGameDescriptor | ||
GetSaveGamePath | string | ||
GetSaveGames | string[] | ||
LoadGame | void | ||
OnExitGame | void | ||
SaveGame | void | ||
UpdateMenus | void |
Method | 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.
|
Method | 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.
|
Method | 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 | ||
return | void |
public MainMenuScreen ( |
||
screen | ||
return | System |
protected OnSelectEntry ( int entryIndex ) : void | ||
entryIndex | int | |
return | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
return | void |