예제 #1
0
        protected AbstractMenu()
        {
            SelectedOption = 0;
            DrawOrder      = .48f;
            font           = MarioCloneGame.GameContent.Load <SpriteFont>("Fonts/Letter");

            controller = new KeyboardController();
            controller.AddInputCommand((int)Keys.Down, new MenuOptionDownCommand(this));
            controller.AddInputCommand((int)Keys.Up, new MenuOptionUpCommand(this));
            controller.AddInputCommand((int)Keys.Enter, new MenuSelectOptionCommand(this));

            menuOptions = new List <Tuple <string, ICommand> >();
        }