C# 클래스 ScreenManagement.Screens.MenuScreen

상속: GameScreen
파일 보기 프로젝트 열기: giladgray/XNA-ScreenManager 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
DefaultAlignment Alignment

공개 메소드들

메소드 설명
AddMenuEntry ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, EventHandler selected, bool inherit ) : MenuEntry
AddMenuLabel ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, Color textColor ) : MenuEntry
Draw ( Microsoft gameTime ) : void
HandleInput ( InputState input ) : void
LoadContent ( ) : void
MenuScreen ( string title ) : System
UnloadContent ( ) : void
Update ( Microsoft gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

보호된 메소드들

메소드 설명
OnCancel ( object sender, MenuSelectionEventArgs args ) : void

Handler for when the user has cancelled the menu.

OnSelectEntry ( int entryIndex, PlayerIndex playerIndex ) : void

Handler for when the user has chosen a menu entry.

메소드 상세

AddMenuEntry() 공개 메소드

public AddMenuEntry ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, EventHandler selected, bool inherit ) : MenuEntry
text string
background Microsoft.Xna.Framework.Graphics.Texture2D
selected EventHandler
inherit bool
리턴 MenuEntry

AddMenuLabel() 공개 메소드

public AddMenuLabel ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, Color textColor ) : MenuEntry
text string
background Microsoft.Xna.Framework.Graphics.Texture2D
textColor Color
리턴 MenuEntry

Draw() 공개 메소드

public Draw ( Microsoft gameTime ) : void
gameTime Microsoft
리턴 void

HandleInput() 공개 메소드

public HandleInput ( InputState input ) : void
input InputState
리턴 void

LoadContent() 공개 메소드

public LoadContent ( ) : void
리턴 void

MenuScreen() 공개 메소드

public MenuScreen ( string title ) : System
title string
리턴 System

OnCancel() 보호된 메소드

Handler for when the user has cancelled the menu.
protected OnCancel ( object sender, MenuSelectionEventArgs args ) : void
sender object
args MenuSelectionEventArgs
리턴 void

OnSelectEntry() 보호된 메소드

Handler for when the user has chosen a menu entry.
protected OnSelectEntry ( int entryIndex, PlayerIndex playerIndex ) : void
entryIndex int
playerIndex PlayerIndex
리턴 void

UnloadContent() 공개 메소드

public UnloadContent ( ) : void
리턴 void

Update() 공개 메소드

public Update ( Microsoft gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft
otherScreenHasFocus bool
coveredByOtherScreen bool
리턴 void

프로퍼티 상세

DefaultAlignment 보호되어 있는 프로퍼티

protected Alignment DefaultAlignment
리턴 Alignment