示例#1
0
        public MenuManager(Game1 game)
        {
            main = new MainMenu(game, this);
            join = new JoinServerMenu(game, this);
            enterServer = new EnterServerMenu(game, this);
            failure = new FailedToConnectMenu(game, this);
            lobby = new GameLobby(game, this);
            quickJoin = new QuickJoin(game, this);
            serverSetup = new ServerSetupMenu(game, this);
            endgame = new EndgameMenu(game, this);
            settings = new SettingsMenu(game, this);
            credits = new CreditsMenu(game, this);

            teamChest = new TeamChestMenu(game, this);
            shop = new CapitalistMenu(game, this);
            potion = new ApothecaryMenu(game, this);

            currentMenu = main;
        }
示例#2
0
 public void SwitchMenu(Menu m)
 {
     currentMenu = m;
     currentMenu.Init();
     Thread.Sleep(200);
 }