37651 {
37654 {
37655 PlayerInput.WritingText = true;
37656 }
37659 {
37662 {
37664 {
37666 }
37667 else
37668 {
37670 }
37672 }
37675 {
37678 spriteBatch.Draw(
TextureAssets.
TextBack.Value,
new Vector2(
num2,
screenHeight - 36),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
TextBack.Width() - 100,
TextureAssets.
TextBack.Height()),
new Microsoft.
Xna.
Framework.
Color(100, 100, 100, 100), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
37679 num -= 400;
37681 while (num > 0)
37682 {
37683 if (num > 300)
37684 {
37685 spriteBatch.Draw(
TextureAssets.
TextBack.Value,
new Vector2(
num2,
screenHeight - 36),
new Microsoft.
Xna.
Framework.
Rectangle(100, 0,
TextureAssets.
TextBack.Width() - 200,
TextureAssets.
TextBack.Height()),
new Microsoft.
Xna.
Framework.
Color(100, 100, 100, 100), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
37686 num -= 300;
37688 }
37689 else
37690 {
37691 spriteBatch.Draw(
TextureAssets.
TextBack.Value,
new Vector2(
num2,
screenHeight - 36),
new Microsoft.
Xna.
Framework.
Rectangle(
TextureAssets.
TextBack.Width() - num, 0,
TextureAssets.
TextBack.Width() - (
TextureAssets.
TextBack.Width() - num),
TextureAssets.
TextBack.Height()),
new Microsoft.
Xna.
Framework.
Color(100, 100, 100, 100), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
37692 num = 0;
37693 }
37694 }
37695 }
37696 else
37697 {
37698 spriteBatch.Draw(
TextureAssets.
TextBack.Value,
new Vector2(78f,
screenHeight - 36),
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
TextBack.Width(),
TextureAssets.
TextBack.Height()),
new Microsoft.
Xna.
Framework.
Color(100, 100, 100, 100), 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
37699 }
37704 {
37706 }
37708 {
37710 }
37714 {
37717 {
37719 }
37720 }
37721 }
37724 {
37727 }
37728 TimeLogger.DetailedDrawTime(10);
37729 }
static Asset< DynamicSpriteFont > MouseText
static Asset< Texture2D > TextBack
void DrawWindowsIMEPanel(Vector2 position, float xAnchor=0f)
static bool drawingPlayerChat
static SpriteBatch spriteBatch
static bool mouseLeftRelease
static IChatMonitor chatMonitor
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 List< TextSnippet > ParseMessage(string text, Color baseColor)