Пример #1
0
 public static void DrawShadowedText(Renderer2D trender, Font font, float size, string text, float x, float y, Color4?col = null)
 {
     trender.DrawString(font,
                        size,
                        text,
                        x + 2, y + 2,
                        Color4.Black);
     trender.DrawString(font,
                        size,
                        text,
                        x, y,
                        col ?? Color4.White);
 }
Пример #2
0
 public static void DrawShadowedText(Renderer2D trender, float size, string text, float x, float y, Color4?col = null)
 {
     trender.DrawString("Arial",
                        size,
                        text,
                        new Vector2(x, y) + new Vector2(2),
                        Color4.Black);
     trender.DrawString("Arial",
                        size,
                        text,
                        new Vector2(x, y),
                        col ?? Color4.White);
 }