Beispiel #1
0
        public static void DrawString(string s, Point p, Color c, Color BackGroundColor)
        {
            GfxStr t = new GfxStr(s, p, 3);

            Filter.Absolute(t, BackGroundColor);
            t.Draw(c);
        }
Beispiel #2
0
 public static void Draw(GfxStr gfx, params Color[] cs)
 {
     for (int i = 0; i < cs.Length; i++)
     {
         Draw(gfx, cs[i]);
     }
 }
Beispiel #3
0
        public static void DrawString(string s, Point p, Color c)
        {
            GfxStr t = new GfxStr(s, p);

            t.Draw(c);
        }
Beispiel #4
0
 public static void Draw(GfxStr gfx, Color c) => spriteBatch.DrawString(gfx.Texture, gfx.Text, new Vector2(gfx.Pos.X + gfx.Edge, gfx.Pos.Y + gfx.Edge), c);