Method | Description | |
---|---|---|
AddMenuItem ( |
||
AddMenuItem ( string name, EntryType type, |
||
Draw ( |
Draws the menu.
|
|
HandleInput ( |
Responds to user input, changing the selected entry and accepting or cancelling the menu.
|
|
LoadContent ( ) : void | ||
MenuScreen ( ) : System |
Constructor.
|
|
MenuScreen ( string menuTitle ) : System |
Constructor.
|
|
Update ( |
Updates the menu.
|
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
GetMenuEntryAt ( Vector2 position ) : int |
Returns the index of the menu entry at the position of the given mouse state.
|
|
GetPreviewCollision ( Vector2 position ) : bool | ||
GetSliderCollision ( Vector2 position ) : bool | ||
UpdateMenuPositions ( ) : void |
public AddMenuItem ( |
||
screen | ||
preview | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | void |
public AddMenuItem ( string name, EntryType type, |
||
name | string | |
type | EntryType | |
screen | ||
return | void |
public Draw ( |
||
gameTime | ||
return | void |
public HandleInput ( |
||
input | ||
gameTime | ||
return | void |
public MenuScreen ( string menuTitle ) : System | ||
menuTitle | string | |
return | System |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
return | void |
protected UpdateMenuEntryLocations ( ) : void | ||
return | void |