Ejemplo n.º 1
0
        public MenuPause(SceneManager manager, Scene parent)
            : base(manager, "Pause")
        {
            TransitionOnTime = TimeSpan.FromSeconds(1);
            IsPopup = true;

            this.

            _parent = parent;

            MenuItem cont = new MenuItem("Reprendre");
            cont.Selected += OnContinueSelected;
            MenuItems.Add(cont);

            MenuItem quit = new MenuItem("Quitter");
            quit.Selected += OnquitSelected;
            MenuItems.Add(quit);
        }
Ejemplo n.º 2
0
        public MainMenu(SceneManager manager)
            : base(manager, "Menu principal")
        {
            MenuItem launch = new MenuItem("Lancer le jeu");
            launch.Selected += OnLaunchSelected;
            MenuItems.Add(launch);

            MenuItem options = new MenuItem("Options");
            options.Selected += OnOptionsSelected;
            MenuItems.Add(options);

            MenuItem achievements = new MenuItem("Succes");
            achievements.Selected += OnAchievementsSelected;
            MenuItems.Add(achievements);

            MenuItem exit = new MenuItem("Quitter");
            exit.Selected += OnExitSelected;
            MenuItems.Add(exit);
        }
Ejemplo n.º 3
0
        public OptionsMenu(SceneManager manager)
            : base(manager, "Options")
        {
            InitHandlers();
            _options = Game1.RotpOptions;

            _bgm = new MenuItem("");
            _bgm.Selected += OnBgmSelected;
            MenuItems.Add(_bgm);

            _sound = new MenuItem("");
            _sound.Selected += OnSoundSelected;
            MenuItems.Add(_sound);

            _fs = new MenuItem("");
            _fs.Selected += OnFullScreenSelected;
            MenuItems.Add(_fs);

            MenuItem ok = new MenuItem("Valider");
            ok.Selected += OnOkSelected;
            MenuItems.Add(ok);
        }