Méthode | Description | |
---|---|---|
Draw ( |
Draws the menu.
|
|
HandleInput ( |
Responds to user input, changing the selected entry and accepting or cancelling the menu.
|
|
MenuScreen ( string menuTitle ) : System |
Constructor.
|
|
Update ( |
Updates the menu.
|
Méthode | Description | |
---|---|---|
OnCancel ( PlayerIndex playerIndex ) : void |
Handler for when the user has cancelled the menu.
|
|
OnCancel ( object sender, |
Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
|
|
OnSelectEntry ( int entryIndex, PlayerIndex playerIndex ) : void |
Handler for when the user has chosen a menu entry.
|
|
UpdateMenuEntryLocations ( ) : void |
Allows the screen the chance to position the menu entries. By default all menu entries are lined up in a vertical list, centered on the screen.
|
public Draw ( |
||
gameTime | ||
Résultat | void |
public HandleInput ( |
||
gameTime | ||
input | InputState | |
Résultat | void |
public MenuScreen ( string menuTitle ) : System | ||
menuTitle | string | |
Résultat | System |
protected OnCancel ( PlayerIndex playerIndex ) : void | ||
playerIndex | PlayerIndex | |
Résultat | void |
protected OnCancel ( object sender, |
||
sender | object | |
e | ||
Résultat | void |
protected OnSelectEntry ( int entryIndex, PlayerIndex playerIndex ) : void | ||
entryIndex | int | |
playerIndex | PlayerIndex | |
Résultat | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
Résultat | void |
protected UpdateMenuEntryLocations ( ) : void | ||
Résultat | void |