Ejemplo n.º 1
0
        public EscapeMenu(Game1 game, AssetManager assetManager, TeamSelectionMenu teamMenu)
            : base(game, assetManager)
        {
            _lblHeader.Text = "Game Menu";
            _lBox.Add("Resume Game");
            _lBox.Add("Switch Team");
            _lBox.Add("Leave Match");
            _lBox.Add("Close Game");

            _teamMenu = teamMenu;
        }
Ejemplo n.º 2
0
 public GameUI(Game1 Game, AssetManager assetManager)
 {
     _assetManager  = assetManager;
     _game          = Game;
     _font          = _assetManager.FontLib["SegoeUI"];
     _healthPos     = new Vector2(660, 500);
     _ammoPos       = new Vector2(660, 520);
     _scorePos      = new Vector2(700, 10);
     _teamMenu      = new TeamSelectionMenu(_game, assetManager);
     _escMenu       = new EscapeMenu(_game, assetManager, _teamMenu);
     _endGame       = new EndGameMenu(_game, assetManager);
     _playerListPos = Vector2.Zero;
     _initDone      = false;
     _teamMenu.Close();
     _escMenu.Close();
 }