C# Класс ScreenManagement.Screens.Old.FancyMenuScreen

Наследование: MenuScreen
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
ChangeColumns void
ChangeColumnsRelative void

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

Метод Описание
AddMenuEntry ( int column, MenuEntry entry, EventHandler evt = null ) : MenuEntry

Adds a new menu entry to the menu with the given event handler.

AddMenuEntry ( int column, string text, Alignment align = Alignment.Left, EventHandler evt = null ) : MenuEntry

Adds a new menu entry to the menu with the given text, alignment, and event handler.

Draw ( GameTime gameTime ) : void

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 ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Updates the menu.

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

Метод Описание
DoLayout ( ) : void

Recalculate the positions and sizes of each menu entry.

OnSelectEntry ( Selection selected, PlayerIndex playerIndex ) : void

Handler for when the user has chosen a menu entry.

Приватные методы

Метод Описание
ChangeColumns ( int dir ) : void
ChangeColumnsRelative ( int dir ) : void

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

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

Adds a new menu entry to the menu with the given event handler.
public AddMenuEntry ( int column, MenuEntry entry, EventHandler evt = null ) : MenuEntry
column int
entry MenuEntry MenuEntry to add
evt EventHandler event handler for selected the menu entry
Результат MenuEntry

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

Adds a new menu entry to the menu with the given text, alignment, and event handler.
public AddMenuEntry ( int column, string text, Alignment align = Alignment.Left, EventHandler evt = null ) : MenuEntry
column int
text string text of the menu entry
align Alignment horizontal alignment of menu entry
evt EventHandler event handler for selecting menu entry
Результат MenuEntry

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

Recalculate the positions and sizes of each menu entry.
protected DoLayout ( ) : void
Результат void

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

Draws the menu.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

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

Creates a new FancyMenuScreen with the given title, number of columns, and column orientation.
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
Результат System

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

Responds to user input, changing the selected entry and accepting or cancelling the menu.
public HandleInput ( InputState input ) : void
input InputState
Результат void

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

public LoadContent ( ) : void
Результат void

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

Handler for when the user has chosen a menu entry.
protected OnSelectEntry ( Selection selected, PlayerIndex playerIndex ) : void
selected Selection
playerIndex PlayerIndex
Результат void

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

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