C# Class Descent.GUI.SubElements.ChatElement

The chat displays chat messages and has an input element as a child that is used to write chatmessages to the chat.
Inheritance: GUIElement
Show file Open project: nezbo/Descent

Public Methods

Method Description
ChatElement ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic

Creates a new Chat for the given Game.

Draw ( SpriteBatch draw ) : void
HandleKeyPress ( Keys key ) : void

Private Methods

Method Description
FormatAndAdd ( string text ) : void
GetMessage ( object sender, ChatMessageEventArgs eventArgs ) : void
GiveEquipment ( object sender, GiveEquipmentEventArgs eventArgs ) : void
SendMessage ( string text ) : void

Method Details

ChatElement() public method

Creates a new Chat for the given Game.
public ChatElement ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic
game Microsoft.Xna.Framework.Game The current Game object.
return System.Collections.Generic

Draw() public method

public Draw ( SpriteBatch draw ) : void
draw Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

HandleKeyPress() public method

public HandleKeyPress ( Keys key ) : void
key Keys
return void