Class ChatBox
Represents the ingame chatbox
Inherited Members
Namespace: Slipe.Server.IO
Assembly: SlipeServer.dll
Syntax
public static class ChatBox
Methods
| Improve this Doc View SourceClear(Player)
Clears the chatbox for the player, if none specified for everyone.
Declaration
public static void Clear(Player player = null)
Parameters
Type | Name | Description |
---|---|---|
Player | player |
SetVisible(Boolean, Player)
Set the chatbox visibility for the player, if none specified for anyone.
Declaration
public static bool SetVisible(bool visible, Player player = null)
Parameters
Type | Name | Description |
---|---|---|
Boolean | visible | |
Player | player |
Returns
Type | Description |
---|---|
Boolean |
WriteLine(String)
Writes a line to the chatbox
Declaration
public static void WriteLine(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message |
WriteLine(String, Player)
Writes a line to the chatbox
Declaration
public static void WriteLine(string message, Player player)
Parameters
Type | Name | Description |
---|---|---|
String | message | |
Player | player |
WriteLine(String, Player, Color, Boolean)
Writes a line to the chatbox
Declaration
public static void WriteLine(string message, Player player, Color color, bool colorCoded = false)
Parameters
Type | Name | Description |
---|---|---|
String | message | |
Player | player | |
Color | color | |
Boolean | colorCoded |
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
The source of the event is either the player or the resource that broadcasted the message
Declaration
public static event ChatBox.OnMessageHandler OnMessage
Event Type
Type | Description |
---|---|
ChatBox.OnMessageHandler |