C# Класс PrinceGame.MenuEntry

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnSelectEntry ( PlayerIndex playerIndex ) : void

Method for raising the Selected event.

Описание методов

Draw() публичный Метод

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
Результат void

GetHeight() публичный Метод

Queries how much space this menu entry requires.
public GetHeight ( MenuScreen screen ) : int
screen MenuScreen
Результат int

GetWidth() публичный Метод

Queries how wide the entry is, used for centering on the screen.
public GetWidth ( MenuScreen screen ) : int
screen MenuScreen
Результат int

MenuEntry() публичный Метод

Constructs a new menu entry with the specified text.
public MenuEntry ( string text ) : System
text string
Результат System

OnSelectEntry() защищенный Метод

Method for raising the Selected event.
protected OnSelectEntry ( PlayerIndex playerIndex ) : void
playerIndex PlayerIndex
Результат void

Update() публичный Метод

Updates the menu entry.
public Update ( MenuScreen screen, bool isSelected, GameTime gameTime ) : void
screen MenuScreen
isSelected bool
gameTime Microsoft.Xna.Framework.GameTime
Результат void