Ejemplo n.º 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public OptionsMenuScreen()
            : base("Options")
        {
            List <string> sl = new List <string>()
            {
                "AO", "M", "T", "E10+", "E", "EC"
            };

            LabelWidth = 200;

            // Create our menu entries.
            ratingEntry       = new MenuEntryList(Messages.optMenuRating, sl, evdEnGlobals.Options.Rating);
            captionsEntry     = new MenuEntryCheckBox(Messages.optMenuSubtitles, evdEnGlobals.Options.ShowCaptions);
            musicVolumeEntry  = new MenuEntryHSlider(Messages.optMenuMusic, 0, 100, (int)(evdEnGlobals.Options.MusicVolume * 100));
            effectVolumeEntry = new MenuEntryHSlider(Messages.optMenuSFX, 0, 100, (int)(evdEnGlobals.Options.EffectVolume * 100));
            speachVolumeEntry = new MenuEntryHSlider(Messages.optMenuSpeach, 0, 100, (int)(evdEnGlobals.Options.SpeachVolume * 100));

            MenuEntry backMenuEntry = new MenuEntry(Messages.msgGoBack);

            //string s = Messages.ResourceManager.GetString("text", Messages.Culture);

            // Hook up menu event handlers.
            backMenuEntry.Selected += BackMenuEntrySelected;

            // Add entries to the menu.
            MenuEntries.Add(ratingEntry);
            MenuEntries.Add(captionsEntry);
            MenuEntries.Add(new MenuEntry(Messages.optMenuVolumes, true));
            MenuEntries.Add(musicVolumeEntry);
            MenuEntries.Add(effectVolumeEntry);
            MenuEntries.Add(speachVolumeEntry);
            MenuEntries.Add(new MenuEntry(string.Empty, true));
            MenuEntries.Add(backMenuEntry);
            selectedEntry = 1;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public ToonMenuScreen(bool aNewMode)
            : base(aNewMode ? "New Character" : "Character Screen")
        {
            IsPopup = true;

            TransitionOnTime  = TimeSpan.FromSeconds(0.2);
            TransitionOffTime = TimeSpan.FromSeconds(0.2);
            newMode           = aNewMode;

            List <string> sl = new List <string>()
            {
                "ÌÝ", "ÆÎ"
            };

            LabelWidth = 200;

            // Create our menu entries.
            ratingEntry = new MenuEntryList("Gender", sl, "ÆÎ");

            MenuEntry backMenuEntry = new MenuEntry(Messages.msgGoBack);

            //string s = Messages.ResourceManager.GetString("text", Messages.Culture);

            // Hook up menu event handlers.
            backMenuEntry.Selected += BackMenuEntrySelected;

            // Add entries to the menu.
            MenuEntries.Add(ratingEntry);
            MenuEntries.Add(new MenuEntry(string.Empty, true));
            MenuEntries.Add(backMenuEntry);
            selectedEntry = 0;
        }