Show / Hide Table of Contents

Class ChatBox

Represents the ingame chatbox

Inheritance
Object
ChatBox
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.IO
Assembly: SlipeServer.dll
Syntax
public static class ChatBox

Methods

| Improve this Doc View Source

Clear(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
| Improve this Doc View Source

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
| Improve this Doc View Source

WriteLine(String)

Writes a line to the chatbox

Declaration
public static void WriteLine(string message)
Parameters
Type Name Description
String message
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

OnMessage

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
  • Improve this Doc
  • View Source
Back to top Generated by DocFX