Exemplo n.º 1
0
        public MenuGroup_WeaponSelect(StageDataPackage StageData, bool StageSelect, int PlaneType)
            : base(StageData)
        {
            this.StageSelect     = StageSelect;
            this.MenuSelectIndex = 0;
            if (PlaneType == 1)
            {
                this.MenuItemList = new List <BaseMenuItem>();
                List <BaseMenuItem> menuItemList1      = this.MenuItemList;
                CharacterMenuItem   characterMenuItem1 = new CharacterMenuItem(StageData, "Weapon_PlaneA");
                characterMenuItem1.Scale             = 0.7f;
                characterMenuItem1.DestPoint1        = new PointF(270f, 150f);
                characterMenuItem1.DestPoint2        = new PointF(200f, 150f);
                characterMenuItem1.TransparentValueF = 0.0f;
                CharacterMenuItem characterMenuItem2 = characterMenuItem1;
                menuItemList1.Add((BaseMenuItem)characterMenuItem2);
                List <BaseMenuItem> menuItemList2      = this.MenuItemList;
                CharacterMenuItem   characterMenuItem3 = new CharacterMenuItem(StageData, "Weapon_PlaneB");
                characterMenuItem3.Scale             = 0.7f;
                characterMenuItem3.DestPoint1        = new PointF(270f, 150f);
                characterMenuItem3.DestPoint2        = new PointF(340f, 150f);
                characterMenuItem3.TransparentValueF = 0.0f;
                CharacterMenuItem characterMenuItem4 = characterMenuItem3;
                menuItemList2.Add((BaseMenuItem)characterMenuItem4);
            }
            else
            {
                List <BaseMenuItem> baseMenuItemList1  = new List <BaseMenuItem>();
                List <BaseMenuItem> baseMenuItemList2  = baseMenuItemList1;
                CharacterMenuItem   characterMenuItem1 = new CharacterMenuItem(StageData, "Weapon_AyaA");
                characterMenuItem1.Scale             = 0.7f;
                characterMenuItem1.DestPoint1        = new PointF(270f, 150f);
                characterMenuItem1.DestPoint2        = new PointF(200f, 150f);
                characterMenuItem1.TransparentValueF = 0.0f;
                CharacterMenuItem characterMenuItem2 = characterMenuItem1;
                baseMenuItemList2.Add((BaseMenuItem)characterMenuItem2);
                this.MenuItemList = baseMenuItemList1;
            }
            this.MenuItemList[this.MenuSelectIndex].Selected = true;
            this.MenuTitlePos1 = new PointF(280f, 30f);
            this.MenuTitlePos2 = new PointF(280f, -100f);
            BaseMenuItem baseMenuItem = new BaseMenuItem(StageData, "MenuTitle_WeaponSelect");

            baseMenuItem.Position    = this.MenuTitlePos2;
            this.MenuTilte           = baseMenuItem;
            this.TransparentValueF   = 0.0f;
            this.MaxTransparent      = (int)byte.MaxValue;
            this.TransparentVelocity = 5f;
            this.OriginalPosition    = new PointF((float)(this.BoundRect.Width / 2), (float)(this.BoundRect.Height / 2));
            this.AngleDegree         = 90.0;
        }
Exemplo n.º 2
0
        public MenuGroup_PlayerSelect(StageDataPackage StageData, bool StageSelect) : base(StageData)
        {
            this.StageSelect  = StageSelect;
            MenuSelectIndex   = 0;
            MenuItemList      = new List <BaseMenuItem>();
            PlayerDescription = new List <BaseMenuItem>();
            List <BaseMenuItem> menuItemList1      = MenuItemList;
            CharacterMenuItem   characterMenuItem1 = new CharacterMenuItem(StageData, "FaceReimu_me")
            {
                DestPoint1        = new PointF(sbyte.MinValue, 10f),
                DestPoint2        = new PointF(-228f, 10f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem2 = characterMenuItem1;

            menuItemList1.Add(characterMenuItem2);
            List <BaseMenuItem> playerDescription1 = PlayerDescription;
            CharacterMenuItem   characterMenuItem3 = new CharacterMenuItem(StageData, "DescriptionReimu")
            {
                DestPoint1        = new PointF(190f, 10f),
                DestPoint2        = new PointF(260f, 10f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem4 = characterMenuItem3;

            playerDescription1.Add(characterMenuItem4);
            List <BaseMenuItem> menuItemList2      = MenuItemList;
            CharacterMenuItem   characterMenuItem5 = new CharacterMenuItem(StageData, "FaceMarisa_me")
            {
                DestPoint1        = new PointF(sbyte.MinValue, 10f),
                DestPoint2        = new PointF(-228f, 10f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem6 = characterMenuItem5;

            menuItemList2.Add(characterMenuItem6);
            List <BaseMenuItem> playerDescription2 = PlayerDescription;
            CharacterMenuItem   characterMenuItem7 = new CharacterMenuItem(StageData, "DescriptionMarisa")
            {
                DestPoint1        = new PointF(190f, 10f),
                DestPoint2        = new PointF(260f, 10f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem8 = characterMenuItem7;

            playerDescription2.Add(characterMenuItem8);
            List <BaseMenuItem> menuItemList3      = MenuItemList;
            CharacterMenuItem   characterMenuItem9 = new CharacterMenuItem(StageData, "FaceSanae_me")
            {
                DestPoint1        = new PointF(0.0f, 30f),
                DestPoint2        = new PointF(-100f, 30f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem10 = characterMenuItem9;

            menuItemList3.Add(characterMenuItem10);
            List <BaseMenuItem> playerDescription3  = PlayerDescription;
            CharacterMenuItem   characterMenuItem11 = new CharacterMenuItem(StageData, "DescriptionSanae")
            {
                DestPoint1        = new PointF(190f, 10f),
                DestPoint2        = new PointF(260f, 10f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem12 = characterMenuItem11;

            playerDescription3.Add(characterMenuItem12);
            List <BaseMenuItem> menuItemList4       = MenuItemList;
            CharacterMenuItem   characterMenuItem13 = new CharacterMenuItem(StageData, "FaceKoishi_me")
            {
                DestPoint1        = new PointF(sbyte.MinValue, 10f),
                DestPoint2        = new PointF(-228f, 10f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem14 = characterMenuItem13;

            menuItemList4.Add(characterMenuItem14);
            List <BaseMenuItem> playerDescription4  = PlayerDescription;
            CharacterMenuItem   characterMenuItem15 = new CharacterMenuItem(StageData, "DescriptionKoishi")
            {
                DestPoint1        = new PointF(190f, 10f),
                DestPoint2        = new PointF(260f, 10f),
                TransparentValueF = 0.0f
            };
            CharacterMenuItem characterMenuItem16 = characterMenuItem15;

            playerDescription4.Add(characterMenuItem16);
            MenuItemList[MenuSelectIndex].Selected      = true;
            PlayerDescription[MenuSelectIndex].Selected = true;
            BaseMenuItem baseMenuItem = new BaseMenuItem(StageData, "MenuTitle_PlayerSelect")
            {
                Position = MenuTitlePos2
            };

            MenuTilte           = baseMenuItem;
            TransparentValueF   = 0.0f;
            MaxTransparent      = byte.MaxValue;
            TransparentVelocity = 10f;
            TxtureObject        = TextureObjectDictionary["MenuBackground"];
            AngleDegree         = 90.0;
            Scale = 0.75f;
            Rectangle boundRect = BoundRect;
            double    num1      = (boundRect.Width / 2 + 30 * (int)(StageData.StateSwitchData.SDPswitch.Difficulty - 1));

            boundRect = BoundRect;
            double num2 = (boundRect.Height / 2 - 20 * (int)(StageData.StateSwitchData.SDPswitch.Difficulty - 1));

            OriginalPosition = new PointF((float)num1, (float)num2);
        }
Exemplo n.º 3
0
        public MenuGroup_PlayerSelectEx(StageDataPackage StageData) : base(StageData, false)
        {
            MenuItemList      = new List <BaseMenuItem>();
            PlayerDescription = new List <BaseMenuItem>();
            if (StageData.PData.C_History.FindAll((x => x.NoContinueClearTimes > 0 && x.MyPlaneFullName == "ReimuA")).Count > 0)
            {
                List <BaseMenuItem> menuItemList       = MenuItemList;
                CharacterMenuItem   characterMenuItem1 = new CharacterMenuItem(StageData, "FaceReimu_me")
                {
                    DestPoint1        = new PointF(sbyte.MinValue, 10f),
                    DestPoint2        = new PointF(-228f, 10f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem2 = characterMenuItem1;
                menuItemList.Add(characterMenuItem2);
                List <BaseMenuItem> playerDescription  = PlayerDescription;
                CharacterMenuItem   characterMenuItem3 = new CharacterMenuItem(StageData, "DescriptionReimu")
                {
                    DestPoint1        = new PointF(190f, 10f),
                    DestPoint2        = new PointF(260f, 10f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem4 = characterMenuItem3;
                playerDescription.Add(characterMenuItem4);
            }
            List <ClearHistory> all = StageData.PData.C_History.FindAll((x => x.ClearTimes > 0));

            if (StageData.PData.C_History.FindAll((x => x.NoContinueClearTimes > 0 && x.MyPlaneFullName == "MarisaA")).Count > 0)
            {
                List <BaseMenuItem> menuItemList       = MenuItemList;
                CharacterMenuItem   characterMenuItem1 = new CharacterMenuItem(StageData, "FaceMarisa_me")
                {
                    DestPoint1        = new PointF(sbyte.MinValue, 10f),
                    DestPoint2        = new PointF(-228f, 10f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem2 = characterMenuItem1;
                menuItemList.Add(characterMenuItem2);
                List <BaseMenuItem> playerDescription  = PlayerDescription;
                CharacterMenuItem   characterMenuItem3 = new CharacterMenuItem(StageData, "DescriptionMarisa")
                {
                    DestPoint1        = new PointF(190f, 10f),
                    DestPoint2        = new PointF(260f, 10f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem4 = characterMenuItem3;
                playerDescription.Add(characterMenuItem4);
            }
            all = StageData.PData.C_History.FindAll((x => x.ClearTimes > 0));
            if (StageData.PData.C_History.FindAll((x => x.NoContinueClearTimes > 0 && x.MyPlaneFullName == "SanaeA")).Count > 0)
            {
                List <BaseMenuItem> menuItemList       = MenuItemList;
                CharacterMenuItem   characterMenuItem1 = new CharacterMenuItem(StageData, "FaceSanae_me")
                {
                    DestPoint1        = new PointF(0.0f, 30f),
                    DestPoint2        = new PointF(-100f, 30f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem2 = characterMenuItem1;
                menuItemList.Add(characterMenuItem2);
                List <BaseMenuItem> playerDescription  = PlayerDescription;
                CharacterMenuItem   characterMenuItem3 = new CharacterMenuItem(StageData, "DescriptionSanae")
                {
                    DestPoint1        = new PointF(190f, 10f),
                    DestPoint2        = new PointF(260f, 10f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem4 = characterMenuItem3;
                playerDescription.Add(characterMenuItem4);
            }
            all = StageData.PData.C_History.FindAll((x => x.ClearTimes > 0));
            if (StageData.PData.C_History.FindAll((x => x.NoContinueClearTimes > 0 && x.MyPlaneFullName == "KoishiA")).Count > 0)
            {
                List <BaseMenuItem> menuItemList       = MenuItemList;
                CharacterMenuItem   characterMenuItem1 = new CharacterMenuItem(StageData, "FaceKoishi_me")
                {
                    DestPoint1        = new PointF(sbyte.MinValue, 10f),
                    DestPoint2        = new PointF(-228f, 10f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem2 = characterMenuItem1;
                menuItemList.Add(characterMenuItem2);
                List <BaseMenuItem> playerDescription  = PlayerDescription;
                CharacterMenuItem   characterMenuItem3 = new CharacterMenuItem(StageData, "DescriptionKoishi")
                {
                    DestPoint1        = new PointF(190f, 10f),
                    DestPoint2        = new PointF(260f, 10f),
                    TransparentValueF = 0.0f
                };
                CharacterMenuItem characterMenuItem4 = characterMenuItem3;
                playerDescription.Add(characterMenuItem4);
            }
            MenuItemList[MenuSelectIndex].Selected      = true;
            PlayerDescription[MenuSelectIndex].Selected = true;
        }