Esempio n. 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);
        }
Esempio n. 2
0
 public static void Draw(GfxStr gfx, params Color[] cs)
 {
     for (int i = 0; i < cs.Length; i++)
     {
         Draw(gfx, cs[i]);
     }
 }
Esempio n. 3
0
        public static void DrawString(string s, Point p, Color c)
        {
            GfxStr t = new GfxStr(s, p);

            t.Draw(c);
        }
Esempio n. 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);