Пример #1
0
 public 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)
 {
     for (int index = 0; index < ChatManager.ShadowDirections.Length; ++index)
     {
         ChatManager.DrawColorCodedString(spriteBatch, font, text, position + ChatManager.ShadowDirections[index] * spread, baseColor, rotation, origin, baseScale, maxWidth, true);
     }
 }
Пример #2
0
 public static void DrawColorCodedStringShadow(SpriteBatch spriteBatch, SpriteFont font, TextSnippet[] snippets, Vector2 position, Color baseColor, float rotation, Vector2 origin, Vector2 baseScale, float maxWidth = -1f, float spread = 2f)
 {
     for (int index = 0; index < ChatManager.ShadowDirections.Length; ++index)
     {
         int hoveredSnippet;
         ChatManager.DrawColorCodedString(spriteBatch, font, snippets, position + ChatManager.ShadowDirections[index] * spread, baseColor, rotation, origin, baseScale, out hoveredSnippet, maxWidth, true);
     }
 }
Пример #3
0
 // Token: 0x06000C5A RID: 3162 RVA: 0x003D8BF0 File Offset: 0x003D6DF0
 public 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)
 {
     for (int i = 0; i < ChatManager.ShadowDirections.Length; i++)
     {
         int num;
         ChatManager.DrawColorCodedString(spriteBatch, font, snippets, position + ChatManager.ShadowDirections[i] * spread, baseColor, rotation, origin, baseScale, out num, maxWidth, true);
     }
 }
Пример #4
0
 public 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)
 {
     ChatManager.DrawColorCodedStringShadow(spriteBatch, font, snippets, position, Color.Black, rotation, origin,
                                            baseScale, maxWidth, spread);
     return(ChatManager.DrawColorCodedString(spriteBatch, font, snippets, position, Color.White, rotation,
                                             origin, baseScale, out hoveredSnippet, maxWidth, false));
 }
Пример #5
0
        public 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)
        {
            TextSnippet[] array = ChatManager.ParseMessage(text, baseColor).ToArray();
            ChatManager.ConvertNormalSnippets(array);
            ChatManager.DrawColorCodedStringShadow(spriteBatch, font, array, position, Color.Black, rotation, origin, baseScale, maxWidth, spread);
            int hoveredSnippet;

            return(ChatManager.DrawColorCodedString(spriteBatch, font, array, position, Color.White, rotation, origin, baseScale, out hoveredSnippet, maxWidth, false));
        }