Méthode | Description | |
---|---|---|
CompareTo ( object obj ) : int | ||
Draw ( ) : void |
Draws the menu entry. This can be overridden to customize the appearance.
|
|
GetHeight ( ) : int |
Queries how much space this menu entry requires.
|
|
GetWidth ( ) : int |
Queries how wide the entry is, used for centering on the screen.
|
|
Initialize ( ) : void | ||
InitializeEntries ( float hiddenX, float visibleX ) : void | ||
InitializePosition ( float target, bool visible ) : void | ||
IsExitItem ( ) : bool | ||
IsSelectable ( ) : bool | ||
MenuEntry ( |
Constructs a new menu entry with the specified text.
|
|
MenuEntry ( string text, |
Constructs a new menu entry with the specified text.
|
|
Update ( bool isSelected, |
Updates the menu entry.
|
|
Update ( bool isSelected, bool isHovered, |
Updates the menu entry.
|
public static InitializeEntries ( float hiddenX, float visibleX ) : void | ||
hiddenX | float | |
visibleX | float | |
Résultat | void |
public InitializePosition ( float target, bool visible ) : void | ||
target | float | |
visible | bool | |
Résultat | void |
public MenuEntry ( |
||
menu | ||
text | string | |
type | EntryType | |
screen | ||
Résultat | System |
public MenuEntry ( string text, |
||
text | string | |
screen | ||
preview | Microsoft.Xna.Framework.Graphics.Texture2D | |
Résultat | System |
public Update ( bool isSelected, |
||
isSelected | bool | |
gameTime | ||
Résultat | void |
public Update ( bool isSelected, bool isHovered, |
||
isSelected | bool | |
isHovered | bool | |
gameTime | ||
Résultat | void |