C# 클래스 PrinceGame.MenuEntry

파일 보기 프로젝트 열기: salvadorc17/Prince-Monogame 1 사용 예제들

공개 메소드들

메소드 설명
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