C# Class Gruppe22.Client.Statusbox

Inheritance: TextOutput
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

Méthode Description
AddLine ( string text, object color = null ) : void

Append a new line of text to the status box; word wrap if necessary

Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

HandleEvent ( bool DownStream, Backend eventID ) : void
MoveContent ( Vector2 difference, int _lastCheck ) : void

OnKeyDown ( Keys k ) : bool

OnMouseDown ( int button ) : bool
ScrollWheel ( int Difference ) : void

Statusbox ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, bool hasBorder = true, bool center = false ) : System

Creates a scrollable area to output text

Method Details

AddLine() public méthode

Append a new line of text to the status box; word wrap if necessary
public AddLine ( string text, object color = null ) : void
text string
color object
Résultat void

Draw() public méthode

This is called when the game should draw itself.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void

HandleEvent() public méthode

public HandleEvent ( bool DownStream, Backend eventID ) : void
DownStream bool
eventID Backend
Résultat void

MoveContent() public méthode

public MoveContent ( Vector2 difference, int _lastCheck ) : void
difference Vector2
_lastCheck int
Résultat void

OnKeyDown() public méthode

public OnKeyDown ( Keys k ) : bool
k Keys
Résultat bool

OnMouseDown() public méthode

public OnMouseDown ( int button ) : bool
button int
Résultat bool

ScrollWheel() public méthode

public ScrollWheel ( int Difference ) : void
Difference int
Résultat void

Statusbox() public méthode

Creates a scrollable area to output text
public Statusbox ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, bool hasBorder = true, bool center = false ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
hasBorder bool
center bool
Résultat System