C# 클래스 ScreenManagement.Screens.Old.FancyMenuScreen

상속: MenuScreen
파일 보기 프로젝트 열기: giladgray/XNA-ScreenManager

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