public override void LoadContent()
        {
            menu.LoadContent();

            Texture2D  Left   = game.Content.Load <Texture2D>("Textures/UI/button/bL");
            Texture2D  Right  = game.Content.Load <Texture2D>("Textures/UI/button/bR");
            Texture2D  Middle = game.Content.Load <Texture2D>("Textures/UI/button/bM");
            SpriteFont font   = game.Content.Load <SpriteFont>("fonts/small");

            pixel = game.Content.Load <Texture2D>("p");

            exit = new Button()
            {
                buttonLeft         = Left,
                buttonRight        = Right,
                buttonMiddle       = Middle,
                labelFont          = font,
                label              = "x",
                focused            = true,
                rect               = new Rectangle(0, 0, 30, 30),
                buttonColorDefault = Color.Red,
                buttonColorHover   = Color.DarkRed,
                buttonColorPressed = Color.Black
            }; exit.LoadContent();

            bg = new Sprite()
            {
                texturename = "Textures/bg/bg1",
                color       = Color.White,
                position    = Vector2.Zero,
                game        = game
            }; bg.LoadContent();

            base.LoadContent();
        }
Exemple #2
0
        public override void LoadContent()
        {
            menu.LoadContent();

            p = game.Content.Load <Texture2D>("p");

            base.LoadContent();
        }