C# Class PrinceGame.MenuEntry

Afficher le fichier Open project: salvadorc17/Prince-Monogame Class Usage Examples

Méthodes publiques

Méthode Description
Draw ( MenuScreen screen, bool isSelected, GameTime gameTime ) : void

Draws the menu entry. This can be overridden to customize the appearance.

GetHeight ( MenuScreen screen ) : int

Queries how much space this menu entry requires.

GetWidth ( MenuScreen screen ) : int

Queries how wide the entry is, used for centering on the screen.

MenuEntry ( string text ) : System

Constructs a new menu entry with the specified text.

Update ( MenuScreen screen, bool isSelected, GameTime gameTime ) : void

Updates the menu entry.

Méthodes protégées

Méthode Description
OnSelectEntry ( PlayerIndex playerIndex ) : void

Method for raising the Selected event.

Method Details

Draw() public méthode

Draws the menu entry. This can be overridden to customize the appearance.
public Draw ( MenuScreen screen, bool isSelected, GameTime gameTime ) : void
screen MenuScreen
isSelected bool
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

GetHeight() public méthode

Queries how much space this menu entry requires.
public GetHeight ( MenuScreen screen ) : int
screen MenuScreen
Résultat int

GetWidth() public méthode

Queries how wide the entry is, used for centering on the screen.
public GetWidth ( MenuScreen screen ) : int
screen MenuScreen
Résultat int

MenuEntry() public méthode

Constructs a new menu entry with the specified text.
public MenuEntry ( string text ) : System
text string
Résultat System

OnSelectEntry() protected méthode

Method for raising the Selected event.
protected OnSelectEntry ( PlayerIndex playerIndex ) : void
playerIndex PlayerIndex
Résultat void

Update() public méthode

Updates the menu entry.
public Update ( MenuScreen screen, bool isSelected, GameTime gameTime ) : void
screen MenuScreen
isSelected bool
gameTime Microsoft.Xna.Framework.GameTime
Résultat void