public override void LoadContent() { if (content == null) content = new ContentManager(ScreenManager.Game.Services, "Content"); level_lock_texture = content.Load<Texture2D>("sprites\\levelselect_lock"); level_textures = new Texture2D[totalitems]; for (int i = 0; i < totalitems; i++) { level_textures[i] = content.Load<Texture2D>("sprites\\levelselect_" + (i + 1).ToString()); } menufont = content.Load<SpriteFont>("menufont"); ((Game1)(ScreenManager.Game)).SetBackgroundSubtitle("Sprites\\Titles\\SelectLevel", 1.0f); highScores = new HighScoreTable(); highScores.Load(content, 0, 0); AddControls(); }
public override void LoadContent() { if (content == null) content = new ContentManager(ScreenManager.Game.Services, "Content"); //check for isoStore version of highScores highScores = new HighScoreTable(); bool madeHighScore = highScores.Load(content,newScoreToPost, maxWaveToPost); if (madeHighScore) { kbResult = Guide.BeginShowKeyboardInput(PlayerIndex.One, "You Placed in the High Scores!", "Enter Your Name!", ((typedText == null) ? "Anonymous" : typedText), GetTypedChars, null); } }
public override void LoadContent() { ContentManager content = ScreenManager.Game.Content; ((Game1)(ScreenManager.Game)).SetBackgroundSubtitle("Sprites\\Titles\\HighScores", 1.0f); //check for isoStore version of highScores highScores = new HighScoreTable(); madeHighScore = highScores.Load(content, newScoreToPost, maxWaveToPost); if (madeHighScore) { kbResult = Guide.BeginShowKeyboardInput(PlayerIndex.One, "You Placed in the High Scores!", "Enter Your Name (Max 10 Characters)", ((typedText == null) ? "" : typedText), GetTypedChars, null); tapForMainMenuTexture = content.Load<Texture2D>("Sprites\\Titles\\TapHoldShareTapMainMenu"); } else { tapForMainMenuTexture = content.Load<Texture2D>("Sprites\\Titles\\TapForMainMenu"); } tapForMainMenuTextureLocation = new Vector2(ScreenManager.GraphicsDevice.Viewport.Width / 2 - tapForMainMenuTexture.Width / 2, ScreenManager.GraphicsDevice.Viewport.Height - 180); RootControl = new HighScorePanel(content, highScores); base.LoadContent(); }