C# 클래스 ScreenManagement.Screens.MessageBoxScreen

A popup message box screen, used to display "are you sure?" confirmation messages.
상속: ScreenManagement.GameScreen
파일 보기 프로젝트 열기: giladgray/XNA-ScreenManager

보호된 프로퍼티들

프로퍼티 타입 설명
gradientTexture Microsoft.Xna.Framework.Graphics.Texture2D
message string

공개 메소드들

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

Draws the message box.

HandleInput ( InputState input ) : void

Responds to user input, accepting or cancelling the message box.

LoadContent ( ) : void

Loads graphics content for this screen. This uses the shared ContentManager provided by the Game class, so the content will remain loaded forever. Whenever a subsequent MessageBoxScreen tries to load this same content, it will just get back another reference to the already loaded data.

MessageBoxScreen ( string message ) : System

Constructor automatically includes the standard "A=ok, B=cancel" usage text prompt.

MessageBoxScreen ( string message, bool includeUsageText ) : System

Constructor lets the caller specify whether to include the standard "A=ok, B=cancel" usage text prompt.

메소드 상세

Draw() 공개 메소드

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

HandleInput() 공개 메소드

Responds to user input, accepting or cancelling the message box.
public HandleInput ( InputState input ) : void
input ScreenManagement.InputState
리턴 void

LoadContent() 공개 메소드

Loads graphics content for this screen. This uses the shared ContentManager provided by the Game class, so the content will remain loaded forever. Whenever a subsequent MessageBoxScreen tries to load this same content, it will just get back another reference to the already loaded data.
public LoadContent ( ) : void
리턴 void

MessageBoxScreen() 공개 메소드

Constructor automatically includes the standard "A=ok, B=cancel" usage text prompt.
public MessageBoxScreen ( string message ) : System
message string
리턴 System

MessageBoxScreen() 공개 메소드

Constructor lets the caller specify whether to include the standard "A=ok, B=cancel" usage text prompt.
public MessageBoxScreen ( string message, bool includeUsageText ) : System
message string
includeUsageText bool
리턴 System

프로퍼티 상세

gradientTexture 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics gradientTexture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

message 보호되어 있는 프로퍼티

protected string message
리턴 string