/// <summary>
        /// Constructor.
        /// </summary>
        public OptionsMenuScreen()
            : base("Options")
        {
            // Create our menu entries.
            languageMenuEntry = new MenuEntry(string.Empty);

            SetMenuEntryText();

            MenuEntry back = new MenuEntry("Back");

            // Hook up menu event handlers.
            languageMenuEntry.Selected += LanguageMenuEntrySelected;
            back.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(languageMenuEntry);
            MenuEntries.Add(back);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public MainMenuScreen()
            : base(string.Empty)
        {
            // Create our menu entries.
            MenuEntry playGameMenuEntry = new MenuEntry(string.Empty);
            //MenuEntry optionsMenuEntry = new MenuEntry("Options");
            //MenuEntry exitMenuEntry = new MenuEntry(string.Empty);

            // Hook up menu event handlers.
            playGameMenuEntry.Selected += PlayGameMenuEntrySelected;
            //optionsMenuEntry.Selected += OptionsMenuEntrySelected;
            //exitMenuEntry.Selected += OnCancel;

            // Add entries to the menu.
            //MenuEntries.Add(optionsMenuEntry);
            //MenuEntries.Add(exitMenuEntry);
            MenuEntries.Add(playGameMenuEntry);
        }