Class ChatBox
Represents the ingame chatbox
Inherited Members
Namespace: Slipe.Client.IO
Assembly: SlipeClient.dll
Syntax
public static class ChatBox
Properties
| Improve this Doc View SourceActive
Get whether the chatbox is being used
Declaration
public static bool Active { get; }
Property Value
Type | Description |
---|---|
Boolean |
Allignment
Get the text alignment setting
Declaration
public static int Allignment { get; }
Property Value
Type | Description |
---|---|
Int32 |
BackgroundColor
Get the background color of the chatbox
Declaration
public static Color BackgroundColor { get; }
Property Value
Type | Description |
---|---|
Color |
BackgroundFades
Get whether the background fades out over time
Declaration
public static bool BackgroundFades { get; }
Property Value
Type | Description |
---|---|
Boolean |
Font
Get the font of the chatbox
Declaration
public static ChatBoxFont Font { get; }
Property Value
Type | Description |
---|---|
ChatBoxFont |
InputBoxActive
Gets whether the input box is active
Declaration
public static bool InputBoxActive { get; }
Property Value
Type | Description |
---|---|
Boolean |
InputColor
Get the background color of the chatbox input
Declaration
public static Color InputColor { get; }
Property Value
Type | Description |
---|---|
Color |
InputPrefixColor
Get the color of the input prefix text
Declaration
public static Color InputPrefixColor { get; }
Property Value
Type | Description |
---|---|
Color |
InputTextColor
Get the color of the text in the chatbox input
Declaration
public static Color InputTextColor { get; }
Property Value
Type | Description |
---|---|
Color |
LineFadeOut
Get how long takes for text to fade out
Declaration
public static float LineFadeOut { get; }
Property Value
Type | Description |
---|---|
Single |
LineLife
Get how long it takes for text to start fading out
Declaration
public static float LineLife { get; }
Property Value
Type | Description |
---|---|
Single |
Lines
Get the amount of lines in the chatbox
Declaration
public static int Lines { get; }
Property Value
Type | Description |
---|---|
Int32 |
Offset
Get the offset
Declaration
public static Vector2 Offset { get; }
Property Value
Type | Description |
---|---|
Vector2 |
PositionalAlignment
Get the allignment
Declaration
public static Vector2 PositionalAlignment { get; }
Property Value
Type | Description |
---|---|
Vector2 |
Scale
Get the scale of the text in the chatbox
Declaration
public static Vector2 Scale { get; }
Property Value
Type | Description |
---|---|
Vector2 |
TextColor
Get the chatbox text color
Declaration
public static Color TextColor { get; }
Property Value
Type | Description |
---|---|
Color |
TextFades
Get whether text fades out over time
Declaration
public static bool TextFades { get; }
Property Value
Type | Description |
---|---|
Boolean |
TextScale
Get the text scale
Declaration
public static float TextScale { get; }
Property Value
Type | Description |
---|---|
Single |
UseCegui
Get whether CEGUI is used to render the chatbox
Declaration
public static bool UseCegui { get; }
Property Value
Type | Description |
---|---|
Boolean |
Visible
Visibility of the chatbox
Declaration
public static bool Visible { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Width
Get the scale of the background width
Declaration
public static float Width { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceClear()
Clears the chatbox
Declaration
public static void Clear()
WriteLine(String)
Writes a line to the chatbox
Declaration
public static void WriteLine(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message |
WriteLine(String, Color, Boolean)
Writes a line to the chatbox
Declaration
public static void WriteLine(string message, Color color, bool colorCoded = false)
Parameters
Type | Name | Description |
---|---|---|
String | message | |
Color | color | |
Boolean | colorCoded |
Events
| Improve this Doc View SourceOnMessage
Declaration
public static event ChatBox.OnMessageHandler OnMessage
Event Type
Type | Description |
---|---|
ChatBox.OnMessageHandler |