public HighScorePanel(ContentManager content, HighScoreTable scores)
        {
            titleFont = content.Load<SpriteFont>("Fonts\\MenuTitle");
            headerFont = content.Load<SpriteFont>("Fonts\\MenuHeader");
            detailFont = content.Load<SpriteFont>("Fonts\\MenuDetail");

            AddChild(new TextControl(" ", titleFont));
            AddChild(CreateHeaderControl());
            PopulateScores(scores);
        }
        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);
            }
        }
        private void PopulateScores(HighScoreTable scores)
        {
            List<HighScoreEntry> scorelist = scores.GetHighScores();

            PanelControl newList = new PanelControl();

            for(int i = 0; i < scorelist.Count; i++)
            {
                CurrencyStringer stringer = new CurrencyStringer(scorelist[i].score);
                newList.AddChild(CreateLeaderboardEntryControl(scorelist[i].name, stringer.outputstring.ToString(), "Wave " + scorelist[i].wave, i == scores.currentHighScoreIndex));
            }

            newList.LayoutColumn(0, 0, 0);

            if (resultListControl != null)
            {
                RemoveChild(resultListControl);
            }
            resultListControl = newList;
            AddChild(resultListControl);
            LayoutColumn(0, 0, 0);
        }
        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();
        }