Пример #1
0
        public override void AddMenuItem(string itemText, MenuWindow itemLink, string animPhotoPath, string screenPath, string description)
        {
            if (isRomMenu)
            {
                screenshotPath = screenPath;
                photoPath      = animPhotoPath;

                screenShot = Content.Load <Texture2D>(screenshotPath);
                screenshotList.Add(screenShot);

                photoFile = Content.Load <Texture2D>(photoPath);

                animationList.Add(photoFile);
                descriptionList.Add(description);
            }
            // calculate the selected value range for the selectedItem to see when to display the down and up arrows
            CalcArrowHandling();
            base.AddMenuItem(itemText, itemLink);
        }
Пример #2
0
        public override void AddMenuItem(string itemText, MenuWindow itemLink)
        {
            if (isSysMenu)
            {
                switch (itemText)
                {
                case "Super Nintendo":
                    screenShot = Content.Load <Texture2D>("Systems//SuperNintendoLogo");
                    screenshotList.Add(screenShot);
                    break;

                case "Atari 2600":
                    screenShot = Content.Load <Texture2D>("Systems/Atari");
                    screenshotList.Add(screenShot);
                    break;

                case "Genesis":
                    screenShot = Content.Load <Texture2D>("Systems/GenesisLogo");
                    screenshotList.Add(screenShot);
                    break;

                case "Nintendo":
                    screenShot = Content.Load <Texture2D>("Systems/NintendoLogo");
                    screenshotList.Add(screenShot);
                    break;

                case "MAME":
                    screenShot = Content.Load <Texture2D>("Systems/MAMELogo");
                    screenshotList.Add(screenShot);
                    break;
                }
            }
            // calculate the selected value range for the selectedItem to see when to display the down and up arrows
            CalcArrowHandling();

            base.AddMenuItem(itemText, itemLink);
        }
Пример #3
0
        public virtual void AddMenuItem(string itemText, MenuWindow itemLink, int actionInteger)
        {
            MenuItem newItem = new MenuItem(itemText, itemLink);

            itemList.Add(newItem);
        }
Пример #4
0
        public virtual void AddMenuItem(string itemText, MenuWindow itemLink, string animPhotoPath, string screenPath, string description)
        {
            MenuItem newItem = new MenuItem(itemText, itemLink);

            itemList.Add(newItem);
        }
Пример #5
0
 public MenuItem(string itemText, MenuWindow itemLink)
 {
     this.itemText = itemText;
     this.itemLink = itemLink;
 }