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); }
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); }
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); }