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

◆ DrawPlayerName_WhenPlayerIsOnScreen()

void Terraria.GameContent.UI.NewMultiplayerClosePlayersOverlay.PlayerOnScreenCache.DrawPlayerName_WhenPlayerIsOnScreen ( SpriteBatch spriteBatch)
inline

Definition at line 30 of file NewMultiplayerClosePlayersOverlay.cs.

31 {
32 _pos = _pos.Floor();
33 DynamicSpriteFontExtensionMethods.DrawString(spriteBatch, FontAssets.MouseText.Value, _name, new Vector2(_pos.X - 2f, _pos.Y), Color.Black, 0f, default(Vector2), 1f, SpriteEffects.None, 0f);
34 DynamicSpriteFontExtensionMethods.DrawString(spriteBatch, FontAssets.MouseText.Value, _name, new Vector2(_pos.X + 2f, _pos.Y), Color.Black, 0f, default(Vector2), 1f, SpriteEffects.None, 0f);
35 DynamicSpriteFontExtensionMethods.DrawString(spriteBatch, FontAssets.MouseText.Value, _name, new Vector2(_pos.X, _pos.Y - 2f), Color.Black, 0f, default(Vector2), 1f, SpriteEffects.None, 0f);
36 DynamicSpriteFontExtensionMethods.DrawString(spriteBatch, FontAssets.MouseText.Value, _name, new Vector2(_pos.X, _pos.Y + 2f), Color.Black, 0f, default(Vector2), 1f, SpriteEffects.None, 0f);
37 DynamicSpriteFontExtensionMethods.DrawString(spriteBatch, FontAssets.MouseText.Value, _name, _pos, _color, 0f, default(Vector2), 1f, SpriteEffects.None, 0f);
38 }
static void DrawString(this SpriteBatch spriteBatch, DynamicSpriteFont spriteFont, string text, Vector2 position, Color color)

References Terraria.GameContent.UI.NewMultiplayerClosePlayersOverlay.PlayerOnScreenCache._color, Terraria.GameContent.UI.NewMultiplayerClosePlayersOverlay.PlayerOnScreenCache._name, Terraria.GameContent.UI.NewMultiplayerClosePlayersOverlay.PlayerOnScreenCache._pos, Microsoft.Xna.Framework.Color.Black, ReLogic.Graphics.DynamicSpriteFontExtensionMethods.DrawString(), Terraria.GameContent.FontAssets.MouseText, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.