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

◆ DrawString() [4/6]

static void ReLogic.Graphics.DynamicSpriteFontExtensionMethods.DrawString ( this SpriteBatch spriteBatch,
DynamicSpriteFont spriteFont,
StringBuilder text,
Vector2 position,
Color color )
inlinestatic

Definition at line 20 of file DynamicSpriteFontExtensionMethods.cs.

21 {
22 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
23 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
24 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
25 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
26 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
27 Vector2 scale = Vector2.One;
28 spriteFont.InternalDraw(text.ToString(), spriteBatch, position, color, 0f, Vector2.Zero, ref scale, (SpriteEffects)0, 0f);
29 }

References ReLogic.Graphics.DynamicSpriteFont.InternalDraw(), Microsoft.Xna.Framework.Vector2.One, and Microsoft.Xna.Framework.Vector2.Zero.