C# 클래스 FarseerPhysics.Samples.ScreenSystem.OptionsScreen

Base class for screens that contain a menu of options. The user can move up and down to select an entry, or cancel to back out of the screen.
상속: GameScreen
파일 보기 프로젝트 열기: tinco/Farseer-Physics

공개 메소드들

메소드 설명
Draw ( GameTime gameTime ) : void

Draws the menu.

HandleInput ( InputHelper input, GameTime gameTime ) : void

Responds to user input, changing the selected entry and accepting or cancelling the menu.

LoadContent ( ) : void
OptionsScreen ( ) : System

Constructor.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Updates the menu.

비공개 메소드들

메소드 설명
GetOptionEntryAt ( Vector2 position ) : int

Returns the index of the menu entry at the position of the given mouse state.

LoadOptions ( ) : void

메소드 상세

Draw() 공개 메소드

Draws the menu.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

HandleInput() 공개 메소드

Responds to user input, changing the selected entry and accepting or cancelling the menu.
public HandleInput ( InputHelper input, GameTime gameTime ) : void
input InputHelper
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

LoadContent() 공개 메소드

public LoadContent ( ) : void
리턴 void

OptionsScreen() 공개 메소드

Constructor.
public OptionsScreen ( ) : System
리턴 System

Update() 공개 메소드

Updates the menu.
public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
리턴 void