public HighScore(Texture2D texture, GraphicsDevice graphics) { GetData(); highscorebutton = new MenuButton(texture, graphics); highscorebutton.SetPosition(new Vector2(120, 225)); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); IsMouseVisible = true; spritefont = Content.Load<SpriteFont>("Arial"); spritefont2 = Content.Load<SpriteFont>("Arial2"); buttonSP = new MenuButton(Content.Load<Texture2D>("MainMenu/SPButton"), graphics.GraphicsDevice); buttonMP = new MenuButton(Content.Load<Texture2D>("MainMenu/MPButton"), graphics.GraphicsDevice); buttonHS = new MenuButton(Content.Load<Texture2D>("MainMenu/HSButton"), graphics.GraphicsDevice); buttonEX = new MenuButton(Content.Load<Texture2D>("MainMenu/EXButton"), graphics.GraphicsDevice); buttonSP.SetPosition(new Vector2(60, 120)); buttonMP.SetPosition(new Vector2(60, 180)); buttonHS.SetPosition(new Vector2(60, 240)); buttonEX.SetPosition(new Vector2(60, 300)); menubackground = Content.Load<Texture2D>("MainMenu/MenuBG"); menurec = new Rectangle(0, 0, screenwidth, screenheight); title = Content.Load<Texture2D>("MainMenu/Ueberschrift"); titlerec = new Rectangle(60, 20, title.Width, title.Height); hsbackground = Content.Load<Texture2D>("MainMenu/HSBG"); highscore = new HighScore(Content.Load<Texture2D>("MainMenu/Back"), graphics.GraphicsDevice); //spPlayer = new Player(Content, SignedInGamer.SignedInGamers[0].DisplayName); //spPlayer = new Player(Content, "Philo"); //vid = Content.Load<Video>("Intro"); //vidRect = new Rectangle(0, 0, screenwith, screenheight); //if(CurrentGameState == GameState.Video) //vidPlayer.Play(vid); }