C# Class PrinceGame.MessageBoxScreen

Inheritance: GameScreen
Afficher le fichier Open project: salvadorc17/Prince-Monogame Class Usage Examples

Méthodes publiques

Méthode Description
Activate ( bool instancePreserved ) : 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.

Draw ( GameTime gameTime ) : void

Draws the message box.

HandleInput ( GameTime gameTime, InputState input ) : void

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

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.

Method Details

Activate() public méthode

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 Activate ( bool instancePreserved ) : void
instancePreserved bool
Résultat void

Draw() public méthode

Draws the message box.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

HandleInput() public méthode

Responds to user input, accepting or cancelling the message box.
public HandleInput ( GameTime gameTime, InputState input ) : void
gameTime Microsoft.Xna.Framework.GameTime
input InputState
Résultat void

MessageBoxScreen() public méthode

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

MessageBoxScreen() public méthode

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
Résultat System