示例#1
0
 public TextForm(Rectangle position, SpriteFont textFont, string title, string text, Color boxColor, Color fontColor, int layer = 0, string id = "")
 {
     hh             = new HandleHighscores();
     timer          = -1;
     this.pos       = position;
     this.textFont  = textFont;
     this.text      = text;
     this.title     = title;
     this.boxColor  = boxColor;
     this.fontColor = fontColor;
     this.special   = new string[10] {
         ")", "!", "@", "#", "$", "%", "^", "&", "*", "(",
     };
 }
示例#2
0
    public GameOver()
    {
        pc = new ParticleController();
        Add(pc);

        handler = new HandleHighscores();

        //Add back button
        backButton          = new Button("BACK", Color.LightGreen, Color.DarkGreen, Fonts.FNT_MENU);
        backButton.Position = new Vector2((SCREEN_SIZE.X - backButton.Dimensions.X) / 2, SCREEN_SIZE.Y - 70) + new Vector2(30, 0);
        Add(backButton);

        scoreForm = new TextForm(new Rectangle(new Point(SCREEN_SIZE.X / 2 - 240, 780), new Point(480, 145)), FNT_GAMESTATS, "Enter your name here!", "", Color.Black, Color.White);

        scoreAdded = false;
    }