메소드 | 설명 | |
---|---|---|
DoClick ( PlayerIndex playerIndex, |
Performs the Selected event for this menu entry.
|
|
Draw ( |
Draws the MenuEntry onto the given SpriteBatch using a specified font.
|
|
GetHeight ( |
||
GetWidth ( |
||
MenuEntry ( string text, EventHandler |
Creates a new MenuEntry that displays some text.
|
|
MenuEntry ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, EventHandler |
Creates a new MenuEntry that displays text centered on a background texture.
|
|
Update ( |
메소드 | 설명 | |
---|---|---|
OnSelectEntry ( PlayerIndex playerIndex, |
Method for raising the Selected event.
|
public DoClick ( PlayerIndex playerIndex, |
||
playerIndex | PlayerIndex | index of the player who initiated the action |
screen | ||
리턴 | void |
public Draw ( |
||
sb | SpriteBatch to draw MenuEntry onto | |
font | font for menu entry text | |
position | Vector2 | coordinates of center of MenuEntry |
isSelected | bool | whether the entry is currently selected in the menu |
gameTime | snapshot of current game timing | |
리턴 | void |
public GetHeight ( |
||
font | ||
리턴 | float |
public GetWidth ( |
||
font | ||
리턴 | float |
public MenuEntry ( string text, EventHandler |
||
text | string | |
select | EventHandler |
|
리턴 | System |
public MenuEntry ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, EventHandler |
||
text | string | |
background | Microsoft.Xna.Framework.Graphics.Texture2D | |
select | EventHandler |
|
리턴 | System |
protected OnSelectEntry ( PlayerIndex playerIndex, |
||
playerIndex | PlayerIndex | |
screen | ||
리턴 | void |
public Update ( |
||
screen | ||
isSelected | bool | |
gameTime | ||
리턴 | void |