Example #1
0
        public SongLoadMenu(ContentManager contentManager)
        {
            font = contentManager.Load <SpriteFont>("LoadMenu/LoadMenuFont");
            loadSelectionButtonTexture = contentManager.Load <Texture2D>("LoadMenu/loadselectionbutton");
            mainMenuButton.Load(contentManager);
            nextButton.Load(contentManager);

            listForwardButton.Load(contentManager);
            listBackwardButton.Load(contentManager);

            loadSelectionButtonList = new Dictionary <Song, NavigationButton>();
            foreach (Song song in medialib.Songs)
            {
                loadSelectionButtonList.Add(song, new LoadSelectionButton(loadSelectionButtonTexture));
            }

            turnPage(0);
        }
Example #2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            debugFont   = Content.Load <SpriteFont>("Debugfont");
            scoreFont   = Content.Load <SpriteFont>("ScoreFont");
            PointGenerator.Load(this.Content);
            playBeatmapsButton.Load(this.Content);
            createBeatmapsButton.Load(this.Content);
            returnToMainMenuButton.Load(this.Content);

            munchymonk = Content.Load <Song>("munchymonk");

            foreach (BeatTimerData btd in BeatTimerList)
            {
                BeatDictionary.Add(btd.Timestamp, new Beat(btd.StartPosition));
            }

            foreach (KeyValuePair <int, PlayObject> kvp in BeatDictionary)
            {
                kvp.Value.LoadContent(this.Content);
            }
        }
Example #3
0
        public XMLLoadMenu(ContentManager contentManager)
        {
            font = contentManager.Load <SpriteFont>("LoadMenu/LoadMenuFont");
            loadSelectionButtonTexture = contentManager.Load <Texture2D>("LoadMenu/loadselectionbutton");
            mainMenuButton.Load(contentManager);
            nextButton.Load(contentManager);
            backButton.Load(contentManager);
            listForwardButton.Load(contentManager);
            listBackwardButton.Load(contentManager);


            using (var storage = IsolatedStorageFile.GetUserStoreForApplication())
            {
                xmlNames = storage.GetFileNames("*.xml");
            }
            loadSelectionButtonList = new Dictionary <string, NavigationButton>();
            foreach (String name in xmlNames)
            {
                loadSelectionButtonList.Add(name, new LoadSelectionButton(loadSelectionButtonTexture));
            }
            turnPage(0);
        }