Ejemplo n.º 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public OptionsMenuScreen()
            : base("")
        {
            // Create our menu entries.
            ungulateMenuEntry = new MenuEntry(string.Empty);
            languageMenuEntry = new MenuEntry(string.Empty);
            frobnicateMenuEntry = new MenuEntry(string.Empty);
            elfMenuEntry = new MenuEntry(string.Empty);

            SetMenuEntryText();

            MenuEntry backMenuEntry = new MenuEntry("Back");

            // Hook up menu event handlers.
            ungulateMenuEntry.Selected += UngulateMenuEntrySelected;
            languageMenuEntry.Selected += LanguageMenuEntrySelected;
            frobnicateMenuEntry.Selected += FrobnicateMenuEntrySelected;
            elfMenuEntry.Selected += ElfMenuEntrySelected;
            backMenuEntry.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(ungulateMenuEntry);
            MenuEntries.Add(languageMenuEntry);
            MenuEntries.Add(frobnicateMenuEntry);
            MenuEntries.Add(elfMenuEntry);
            MenuEntries.Add(backMenuEntry);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public SourceScreen()
            : base("")
        {
            // Flag that there is no need for the game to transition
            // off when the pause menu is on top of it.
            IsPopup = true;
            // Create our menu entries.
            MenuEntry[] menuentries = new MenuEntry[6];

                //ScreenManager.RemoveScreen(this);
                //ScreenManager.AddScreen(new MainMenuScreen(), null);

                switch (MediaSource.GetAvailableMediaSources().Count)
                {
                    case 0:
                        menuentries[0] = new MenuEntry("No Sources Found");
                        MenuEntries.Add(menuentries[0]);
                        menuentries[0].Selected += selectedSource0;
                        break;
                    case 1:
                        menuentries[1] = new MenuEntry(MediaSource.GetAvailableMediaSources()[0].Name);
                        MenuEntries.Add(menuentries[1]);
                        break;
                    case 2:
                        menuentries[1] = new MenuEntry(MediaSource.GetAvailableMediaSources()[0].Name);
                        MenuEntries.Add(menuentries[1]);
                        menuentries[2] = new MenuEntry(MediaSource.GetAvailableMediaSources()[1].Name);
                        MenuEntries.Add(menuentries[2]);
                        break;
                    case 3:
                        menuentries[1] = new MenuEntry(MediaSource.GetAvailableMediaSources()[0].Name);
                        MenuEntries.Add(menuentries[1]);
                        menuentries[2] = new MenuEntry(MediaSource.GetAvailableMediaSources()[1].Name);
                        MenuEntries.Add(menuentries[2]);
                        menuentries[3] = new MenuEntry(MediaSource.GetAvailableMediaSources()[2].Name);
                        MenuEntries.Add(menuentries[3]);
                        break;
                    case 4:
                        menuentries[1] = new MenuEntry(MediaSource.GetAvailableMediaSources()[0].Name);
                        MenuEntries.Add(menuentries[1]);
                        menuentries[2] = new MenuEntry(MediaSource.GetAvailableMediaSources()[1].Name);
                        MenuEntries.Add(menuentries[2]);
                        menuentries[3] = new MenuEntry(MediaSource.GetAvailableMediaSources()[2].Name);
                        MenuEntries.Add(menuentries[3]);
                        menuentries[4] = new MenuEntry(MediaSource.GetAvailableMediaSources()[3].Name);
                        MenuEntries.Add(menuentries[4]);
                        break;
                    default:
                        menuentries[0] = new MenuEntry("No Sources Found Press A to return");
                        MenuEntries.Add(menuentries[0]);
                        menuentries[0].Selected += selectedSource0;
                        break;

            }
                menuentries[5] = new MenuEntry("Back");
                MenuEntries.Add(menuentries[5]);
                //menuentries[5].Selected += OnCancel;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public DiscMenuScreen()
            : base("")
        {
            // Flag that there is no need for the game to transition
            // off when the pause menu is on top of it.
            IsPopup = true;

            // Create our menu entries.
            MenuEntry resumeGameMenuEntry = new MenuEntry("");

            // Hook up menu event handlers.
            resumeGameMenuEntry.Selected += OnCancel;

            // Add entries to the menu.
            MenuEntries.Add(resumeGameMenuEntry);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public Disclaim()
            : base("")
        {
            //Guide.SimulateTrialMode = true;

            //Texture2D gameplaybackground;
            //gameplaybackground = ScreenManager.Game.Content.Load<Texture2D>("setup");
            // Create our menu entries.
            MenuEntry playGameMenuEntry = new MenuEntry("");
            //MenuEntry exitMenuEntry = new MenuEntry("Exit");
            // Hook up menu event handlers.
            playGameMenuEntry.Selected += PlayGameMenuEntrySelected;
            //exitMenuEntry.Selected += OnCancel;
            //exitMenuEntry.Selected += OnCancel;

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