메소드 | 설명 | |
---|---|---|
Draw ( |
Draws the menu.
|
|
HandleInput ( |
Responds to user input, changing the selected entry and accepting or cancelling the menu.
|
|
LoadContent ( ) : void | ||
MenuScreen ( string menuTitle ) : System |
Constructor.
|
|
UnloadContent ( ) : void | ||
Update ( |
Updates the menu.
|
메소드 | 설명 | |
---|---|---|
GetMenuEntryHitBounds ( MenuEntry entry ) : |
Allows the screen to create the hit bounds for a particular menu entry.
|
|
OnCancel ( object sender, |
Handler for when the user has cancelled the menu.
|
|
OnSelectEntry ( int entryIndex ) : 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 |
protected GetMenuEntryHitBounds ( MenuEntry entry ) : |
||
entry | MenuEntry | |
리턴 |
protected OnCancel ( object sender, |
||
sender | object | |
e | ||
리턴 | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
리턴 | void |