C# Class Gruppe22.Client.Statusbox

Inheritance: TextOutput
Show file Open project: propra13-orga/gruppe22 Class Usage Examples

Public Methods

Method 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 method

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
return void

Draw() public method

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.
return void

HandleEvent() public method

public HandleEvent ( bool DownStream, Backend eventID ) : void
DownStream bool
eventID Backend
return void

MoveContent() public method

public MoveContent ( Vector2 difference, int _lastCheck ) : void
difference Vector2
_lastCheck int
return void

OnKeyDown() public method

public OnKeyDown ( Keys k ) : bool
k Keys
return bool

OnMouseDown() public method

public OnMouseDown ( int button ) : bool
button int
return bool

ScrollWheel() public method

public ScrollWheel ( int Difference ) : void
Difference int
return void

Statusbox() public method

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
return System