My Project
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GameChat Class Reference
Inheritance diagram for GameChat:

Public Member Functions

void Hide ()
 
void Clear ()
 
bool SendChat (string text, bool teamChat)
 
void AddChat (string text, Color color, Player player=null)
 
string ValidateChatString (string str, bool checkLength=true)
 
void OnDeselectInput ()
 
bool IsVisible ()
 
Color GetPlayerColor (Player player, bool useLocalColor=true)
 
void ServerChat (string chat, ushort toclient=ushort.MaxValue)
 

Static Public Member Functions

static void ChatOrLog (string text)
 
static void ChatOrLog (string text, Color color, Player player=null)
 

Public Attributes

float alphaColor = 0.25f
 
float enterTextAlphaColor = 0.75f
 
float resizeSpeed = 0.5f
 
float chatPositionYPercent = 0.75f
 
float chatHideSecs = 8.0f
 
Color defaultChatColor = Color.white
 
Color localPlayerNameColor = Color.white
 
Color defaultPlayerNameColor = Color.white
 
Color redTeamColor = Color.white
 
Color blueTeamColor = Color.white
 
InputField input
 
RectTransform mainChat
 
RectTransform chatContent
 
GameObject chatItem
 
Text teamChatIndicator
 
Text inputText
 
Color serverMessageColor = Color.cyan
 
int dcEmoticonIndex = 0
 
int chatEmoticonIndex = 1
 
int afkEmoticonIndex = 2
 
int maxChatsInFloodSecs = 2
 
float floodSecs = 3.0f
 
ChatEvent OnChat = new ChatEvent()
 

Static Public Attributes

static GameChat instance
 
static bool disableChat = false
 

The documentation for this class was generated from the following file: