public abstract void DrawString(string text, dFont font, dColor color, float x, float y);
public GameControl_FPS(int top, int left, string font, float size) { Visible = false; this.fps = new List<int>(); Top = top; Left = left; this.font = font; this.size = size; f1 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Left)); f2 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Right)); }
public GameControl_Score(int top, int left, string font, float size) { score = 0; Top = top; Left = left; this.font = font; this.size = size; f1 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Left)); f2 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Right)); }
public override void DrawString(string text, dFont font, dColor color, float x, float y) { System.Drawing.SolidBrush b = new System.Drawing.SolidBrush(color.ToGDI()); System.Drawing.Font f = new System.Drawing.Font(font.Family, font.Size, font.Style.ToGDI()); g.DrawString(text, f, b, (int)x, (int)y, font.Format.ToGDI()); }