tModLoader v2024.08
A mod to make and play Terraria mods
ChatManager Class Reference

Classes

class  Regexes
 

Static Public Member Functions

static bool AddChatText (DynamicSpriteFont font, string text, Vector2 baseScale)
 
static void ConvertNormalSnippets (TextSnippet[] snippets)
 
static Vector2 DrawColorCodedString (SpriteBatch spriteBatch, DynamicSpriteFont font, string text, Vector2 position, Color baseColor, float rotation, Vector2 origin, Vector2 baseScale, float maxWidth=-1f, bool ignoreColors=false)
 
static Vector2 DrawColorCodedString (SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, Color baseColor, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth, bool ignoreColors=false)
 
static void DrawColorCodedStringShadow (SpriteBatch spriteBatch, DynamicSpriteFont font, string text, Vector2 position, Color baseColor, float rotation, Vector2 origin, Vector2 baseScale, float maxWidth=-1f, float spread=2f)
 
static void DrawColorCodedStringShadow (SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, Color baseColor, float rotation, Vector2 origin, Vector2 baseScale, float maxWidth=-1f, float spread=2f)
 
static Vector2 DrawColorCodedStringWithShadow (SpriteBatch spriteBatch, DynamicSpriteFont font, string text, Vector2 position, Color baseColor, Color shadowColor, float rotation, Vector2 origin, Vector2 baseScale, float maxWidth=-1f, float spread=2f)
 
static Vector2 DrawColorCodedStringWithShadow (SpriteBatch spriteBatch, DynamicSpriteFont font, string text, Vector2 position, Color baseColor, float rotation, Vector2 origin, Vector2 baseScale, float maxWidth=-1f, float spread=2f)
 
static Vector2 DrawColorCodedStringWithShadow (SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Color color, Color shadowColor, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
 
static Vector2 DrawColorCodedStringWithShadow (SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Color color, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
 
static Vector2 DrawColorCodedStringWithShadow (SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
 
static Vector2 GetStringSize (DynamicSpriteFont font, string text, Vector2 baseScale, float maxWidth=-1f)
 
static Vector2 GetStringSize (DynamicSpriteFont font, TextSnippet[] snippets, Vector2 baseScale, float maxWidth=-1f)
 
static List< TextSnippetParseMessage (string text, Color baseColor)
 
static void Register< T > (params string[] names)
 
static Color WaveColor (Color color)
 

Static Public Attributes

static readonly ChatCommandProcessor Commands = new ChatCommandProcessor()
 
static readonly Vector2[] ShadowDirections
 

Member Function Documentation

◆ Register< T >()

static void ChatManager.Register< T > ( params string[]  names)
static
Type Constraints
T :ITagHandler 
T :new() 

Member Data Documentation

◆ ShadowDirections

readonly Vector2 [] ChatManager.ShadowDirections
static
Initial value:
= new Vector2[4] {
-Vector2.UnitX,
Vector2.UnitX,
-Vector2.UnitY,
Vector2.UnitY
}