Ejemplo n.º 1
0
        public void init(Microsoft.Xna.Framework.Content.ContentManager Content, Action inGameCallback, Action backToMenuCallback, Action reinitCallback)
        {
            base.init(Content);
            sideMenuBack = Content.Load <Texture2D>(".\\Sprites\\GUI\\backMenuShape");


            soundButton = new SoundButton(inGameCallback);
            soundButton.init(Content);

            homeButton = new HomeButton(backToMenuCallback);
            homeButton.init(Content);

            backButton = new BackButton(reinitCallback);
            backButton.init(Content);

            playButton = new InGamePlayButton(inGameCallback);
            playButton.init(Content);

            buttonList = new LinkedList <SimpleButton>();
            buttonList.AddLast(playButton);
            buttonList.AddLast(soundButton);
            buttonList.AddLast(homeButton);
            buttonList.AddLast(backButton);


            playButton.position.Y = 375f;
            playButton.position.X = 800f;

            soundButton.position.Y = 40f;
            soundButton.position.X = 815f;

            homeButton.position.Y = 175f;
            homeButton.position.X = 815f;

            backButton.position.Y = 255f;
            backButton.position.X = 815f;
        }