Exemplo n.º 1
0
        public GameOverScreen()
        {
            menuItems = new List<LinkedMenuItem>();

            // Create our buttons
            StartGameButton restartButton = new StartGameButton(this);
            QuitToMenuButton menuButton = new QuitToMenuButton(this);

            // Link them up
            restartButton.Down = menuButton;
            menuButton.Up = restartButton;

            // Add items to the menu list
            menuItems.Add(restartButton);
            menuItems.Add(menuButton);

            // Select the default item
            this.SelectItem(restartButton);
        }
Exemplo n.º 2
0
        public GameOverScreen()
        {
            menuItems = new List <LinkedMenuItem>();

            // Create our buttons
            StartGameButton  restartButton = new StartGameButton(this);
            QuitToMenuButton menuButton    = new QuitToMenuButton(this);

            // Link them up
            restartButton.Down = menuButton;
            menuButton.Up      = restartButton;

            // Add items to the menu list
            menuItems.Add(restartButton);
            menuItems.Add(menuButton);

            // Select the default item
            this.SelectItem(restartButton);
        }