Exemplo n.º 1
0
        /// <summary>
        ///  Called when graphics resources need to be loaded. Override this method to
        ///  load any component-specific graphics resources.
        /// </summary>
        protected override void LoadContent()
        {
            base.LoadContent();

            title = new MenuOption(new Vector2(SwordeningGame.windowWidth / 2,100f),titleText,textFont,Color.WhiteSmoke);
            title.Scale = 2.0f;
            back = new MenuOption(new Vector2(SwordeningGame.windowWidth / 4,540f),backText,textFont,Color.WhiteSmoke);

            Background = _game.Textures["helpMenuBG1"];
        }
Exemplo n.º 2
0
        /// <summary>
        ///  Called when graphics resources need to be loaded. Override this method to
        ///  load any component-specific graphics resources.
        /// </summary>
        protected override void LoadContent()
        {
            base.LoadContent();

            title = new MenuOption(new Vector2(SwordeningGame.windowWidth / 2,100f),titleText,textFont,Color.WhiteSmoke);
            title.Scale = 2.0f;
            resume = new MenuOption(new Vector2(SwordeningGame.windowWidth / 2,360f),resumeText,textFont,Color.Gold);
            start = new MenuOption(new Vector2(SwordeningGame.windowWidth / 2,400f),startText,textFont,Color.Gold);
            howTo = new MenuOption(new Vector2(SwordeningGame.windowWidth / 2,440f),howToText,textFont,Color.Gold);
            quit = new MenuOption(new Vector2(SwordeningGame.windowWidth / 2,480f),quitText,textFont,Color.Gold);
            background = _game.musics["menumusic"];
            backimage = _game.Textures["swordlander"];
            MediaPlayer.Play(background);
        }