Esempio n. 1
0
        protected override void LoadContent()
        {
            Texture2D backgroundImage = Content.Load <Texture2D>("Backgrounds/zombiestart");

            background = new BackgroundPanel(lhg, backgroundImage, true);

            Texture2D buttonImage = Content.Load <Texture2D>("GUI/buttonbackground");

            buttonMenu = new ButtonMenu(lhg, lhg.NormalFont, buttonImage, 5, this);

            string[] items = { "NEW GAME",
                               "CONTINUE GAME",
                               "OPTIONS",
                               "QUIT" };

            buttonMenu.SetMenuItems(items);
            buttonMenu.Position      = new Vector2(350, 500);
            buttonMenu.SelectedIndex = 0;
            base.LoadContent();
        }
Esempio n. 2
0
        protected override void LoadContent()
        {
            Texture2D texture = lhg.Content.Load <Texture2D>("Backgrounds/black");

            background = new BackgroundPanel(lhg, texture, true);
        }