Property | Type | Description | |
---|---|---|---|
ChangeColumns | void | ||
ChangeColumnsRelative | void |
Method | Description | |
---|---|---|
AddMenuEntry ( int column, MenuEntry entry, EventHandler |
Adds a new menu entry to the menu with the given event handler.
|
|
AddMenuEntry ( int column, string text, Alignment align = Alignment.Left, EventHandler |
Adds a new menu entry to the menu with the given text, alignment, and event handler.
|
|
Draw ( |
Draws the menu.
|
|
FancyMenuScreen ( string title, int columns, Orientation orientation = Orientation.Vertical ) : System |
Creates a new FancyMenuScreen with the given title, number of columns, and column orientation.
|
|
HandleInput ( InputState input ) : void |
Responds to user input, changing the selected entry and accepting or cancelling the menu.
|
|
LoadContent ( ) : void | ||
Update ( |
Updates the menu.
|
Method | Description | |
---|---|---|
DoLayout ( ) : void |
Recalculate the positions and sizes of each menu entry.
|
|
OnSelectEntry ( |
Handler for when the user has chosen a menu entry.
|
Method | Description | |
---|---|---|
ChangeColumns ( int dir ) : void | ||
ChangeColumnsRelative ( int dir ) : void |
public AddMenuEntry ( int column, MenuEntry entry, EventHandler |
||
column | int | |
entry | MenuEntry | MenuEntry to add |
evt | EventHandler |
event handler for selected the menu entry |
return | MenuEntry |
public AddMenuEntry ( int column, string text, Alignment align = Alignment.Left, EventHandler |
||
column | int | |
text | string | text of the menu entry |
align | Alignment | horizontal alignment of menu entry |
evt | EventHandler |
event handler for selecting menu entry |
return | MenuEntry |
public Draw ( |
||
gameTime | ||
return | void |
public FancyMenuScreen ( string title, int columns, Orientation orientation = Orientation.Vertical ) : System | ||
title | string | the title of the menu |
columns | int | the number of menu columns |
orientation | Orientation | |
return | System |
public HandleInput ( InputState input ) : void | ||
input | InputState | |
return | void |
protected OnSelectEntry ( |
||
selected | ||
playerIndex | PlayerIndex | |
return | void |
public Update ( |
||
gameTime | ||
otherScreenHasFocus | bool | |
coveredByOtherScreen | bool | |
return | void |