C# Класс ScreenManagement.Screens.MessageBoxScreen

A popup message box screen, used to display "are you sure?" confirmation messages.
Наследование: ScreenManagement.GameScreen
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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