Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DrawColorCodedStringShadow() [1/2]

static void Terraria.UI.Chat.ChatManager.DrawColorCodedStringShadow ( SpriteBatch spriteBatch,
DynamicSpriteFont font,
string text,
Vector2 position,
Color baseColor,
float rotation,
Vector2 origin,
Vector2 baseScale,
float maxWidth = -1f,
float spread = 2f )
inlinestatic

Definition at line 297 of file ChatManager.cs.

298 {
299 for (int i = 0; i < ShadowDirections.Length; i++)
300 {
301 DrawColorCodedString(spriteBatch, font, text, position + ShadowDirections[i] * spread, baseColor, rotation, origin, baseScale, maxWidth, ignoreColors: true);
302 }
303 }
static readonly Vector2[] ShadowDirections
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)

References Terraria.UI.Chat.ChatManager.DrawColorCodedString(), System.Text.RegularExpressions.i, Terraria.UI.Chat.ChatManager.ShadowDirections, and System.text.