메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | void |
public HandleInput ( |
||
gameTime | ||
input | InputState | |
리턴 | void |
protected OnCancel ( PlayerIndex playerIndex ) : void | ||
playerIndex | PlayerIndex | |
리턴 | void |
protected OnCancel ( object sender, |
||
sender | object | |
e | ||
리턴 | void |
protected OnSelectEntry ( int entryIndex, PlayerIndex playerIndex ) : void | ||
entryIndex | int | |
playerIndex | PlayerIndex | |
리턴 | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
리턴 | void |