예제 #1
0
        // コンストラクタ

        public CActPerfDrumsLaneFlushD()
        {
            STレーンサイズ[] stレーンサイズArray = new STレーンサイズ[11];
            STレーンサイズ   stレーンサイズ      = new STレーンサイズ();

            stレーンサイズ.x       = 0x12a;
            stレーンサイズ.w       = 0x40;
            stレーンサイズArray[0] = stレーンサイズ;
            STレーンサイズ stレーンサイズ2 = new STレーンサイズ();

            stレーンサイズ2.x      = 370;
            stレーンサイズ2.w      = 0x2e;
            stレーンサイズArray[1] = stレーンサイズ2;
            STレーンサイズ stレーンサイズ3 = new STレーンサイズ();

            stレーンサイズ3.x      = 470;
            stレーンサイズ3.w      = 0x36;
            stレーンサイズArray[2] = stレーンサイズ3;
            STレーンサイズ stレーンサイズ4 = new STレーンサイズ();

            stレーンサイズ4.x      = 582;
            stレーンサイズ4.w      = 60;
            stレーンサイズArray[3] = stレーンサイズ4;
            STレーンサイズ stレーンサイズ5 = new STレーンサイズ();

            stレーンサイズ5.x      = 0x210;
            stレーンサイズ5.w      = 0x2e;
            stレーンサイズArray[4] = stレーンサイズ5;
            STレーンサイズ stレーンサイズ6 = new STレーンサイズ();

            stレーンサイズ6.x      = 0x285;
            stレーンサイズ6.w      = 0x2e;
            stレーンサイズArray[5] = stレーンサイズ6;
            STレーンサイズ stレーンサイズ7 = new STレーンサイズ();

            stレーンサイズ7.x      = 0x2b6;
            stレーンサイズ7.w      = 0x2e;
            stレーンサイズArray[6] = stレーンサイズ7;
            STレーンサイズ stレーンサイズ8 = new STレーンサイズ();

            stレーンサイズ8.x      = 0x2ec;
            stレーンサイズ8.w      = 0x40;
            stレーンサイズArray[7] = stレーンサイズ8;
            STレーンサイズ stレーンサイズ9 = new STレーンサイズ();

            stレーンサイズ9.x      = 0x1a3;
            stレーンサイズ9.w      = 0x30;
            stレーンサイズArray[8] = stレーンサイズ9;
            STレーンサイズ stレーンサイズ10 = new STレーンサイズ();

            stレーンサイズ10.x     = 0x32f;
            stレーンサイズ10.w     = 0x26;
            stレーンサイズArray[9] = stレーンサイズ10;
            STレーンサイズ stレーンサイズ11 = new STレーンサイズ();

            stレーンサイズ11.x      = 0x1a3;
            stレーンサイズ11.w      = 0x30;
            stレーンサイズArray[10] = stレーンサイズ11;
            this.stレーンサイズ     = stレーンサイズArray;
            this.strファイル名     = new string[] {
                @"Graphics\ScreenPlayDrums lane flush leftcymbal.png",
                @"Graphics\ScreenPlayDrums lane flush hihat.png",
                @"Graphics\ScreenPlayDrums lane flush snare.png",
                @"Graphics\ScreenPlayDrums lane flush bass.png",
                @"Graphics\ScreenPlayDrums lane flush hitom.png",
                @"Graphics\ScreenPlayDrums lane flush lowtom.png",
                @"Graphics\ScreenPlayDrums lane flush floortom.png",
                @"Graphics\ScreenPlayDrums lane flush cymbal.png",
                @"Graphics\ScreenPlayDrums lane flush leftpedal.png",
                @"Graphics\ScreenPlayDrums lane flush ridecymbal.png",
                @"Graphics\ScreenPlayDrums lane flush leftpedal.png",

                @"Graphics\ScreenPlayDrums lane flush leftcymbal reverse.png",
                @"Graphics\ScreenPlayDrums lane flush hihat reverse.png",
                @"Graphics\ScreenPlayDrums lane flush snare reverse.png",
                @"Graphics\ScreenPlayDrums lane flush bass reverse.png",
                @"Graphics\ScreenPlayDrums lane flush hitom reverse.png",
                @"Graphics\ScreenPlayDrums lane flush lowtom reverse.png",
                @"Graphics\ScreenPlayDrums lane flush floortom reverse.png",
                @"Graphics\ScreenPlayDrums lane flush cymbal reverse.png",
                @"Graphics\ScreenPlayDrums lane flush leftpedal reverse.png",
                @"Graphics\ScreenPlayDrums lane flush ridecymbal reverse.png",
                @"Graphics\ScreenPlayDrums lane flush leftpedal reverse.png"
            };



            base.bNotActivated = true;
        }
        // CActivity 実装

        public override void OnActivate()
        {
            for (int i = 0; i < 15; i++)
            {
                this.st状態[i].ct進行 = new CCounter();
            }

            for (int i = 0; i < 12; i++)
            {
                if (CDTXMania.ConfigIni.nShowLagTypeColor == 0)
                {
                    this.stLag数値[i].rc      = new Rectangle((i % 4) * 15, (i / 4) * 19, 15, 19);                                        // plus numbers
                    this.stLag数値[i + 12].rc = new Rectangle((i % 4) * 15 + 64, (i / 4) * 19 + 64, 15, 19);                              // minus numbers
                }
                else
                {
                    this.stLag数値[i].rc      = new Rectangle((i % 4) * 15 + 64, (i / 4) * 19 + 64, 15, 19);                              // minus numbers
                    this.stLag数値[i + 12].rc = new Rectangle((i % 4) * 15, (i / 4) * 19, 15, 19);                                        // plus numbers
                }
            }

            this.stレーンサイズ = new STレーンサイズ[15];
            STレーンサイズ stレーンサイズ = new STレーンサイズ();

            //                                LC          HH          SD            BD          HT           LT           FT            CY          LP             RD
            int[,] sizeXW = new int[, ] {
                { 290, 80 }, { 367, 46 }, { 470, 54 }, { 582, 60 }, { 528, 46 }, { 645, 46 }, { 694, 46 }, { 748, 64 }, { 419, 46 }, { 815, 80 }, { 815, 80 }, { 815, 80 }, { 815, 80 }, { 815, 80 }, { 815, 80 },
            };
            int[,] sizeXW_B = new int[, ] {
                { 290, 80 }, { 367, 46 }, { 419, 54 }, { 534, 60 }, { 590, 46 }, { 645, 46 }, { 694, 46 }, { 748, 64 }, { 478, 46 }, { 815, 64 }, { 815, 80 }, { 507, 80 }, { 815, 80 }, { 815, 80 }, { 815, 80 },
            };
            int[,] sizeXW_C = new int[, ] {
                { 290, 80 }, { 367, 46 }, { 470, 54 }, { 534, 60 }, { 590, 46 }, { 645, 46 }, { 694, 46 }, { 748, 64 }, { 419, 46 }, { 815, 64 }, { 815, 80 }, { 507, 80 }, { 815, 80 }, { 815, 80 }, { 815, 80 },
            };
            int[,] sizeXW_D = new int[, ] {
                { 290, 80 }, { 367, 46 }, { 419, 54 }, { 582, 60 }, { 476, 46 }, { 645, 46 }, { 694, 46 }, { 748, 64 }, { 528, 46 }, { 815, 64 }, { 815, 80 }, { 507, 80 }, { 815, 80 }, { 815, 80 }, { 815, 80 },
            };

            for (int i = 0; i < 15; i++)
            {
                this.stレーンサイズ[i] = new STレーンサイズ();
                if (CDTXMania.ConfigIni.bDrumsEnabled)
                {
                    this.stレーンサイズ[i] = default(CActPerfDrumsJudgementString.STレーンサイズ);
                    switch (CDTXMania.ConfigIni.eLaneType.Drums)
                    {
                    case EType.A:
                        this.stレーンサイズ[i].x = sizeXW[i, 0];
                        this.stレーンサイズ[i].w = sizeXW[i, 1];
                        goto IL_19F;

                    case EType.B:
                        this.stレーンサイズ[i].x = sizeXW_B[i, 0];
                        this.stレーンサイズ[i].w = sizeXW_B[i, 1];
                        goto IL_19F;

                    case EType.C:
                        this.stレーンサイズ[i].x = sizeXW_C[i, 0];
                        this.stレーンサイズ[i].w = sizeXW_C[i, 1];
                        goto IL_19F;

                    case EType.D:
                        this.stレーンサイズ[i].x = sizeXW_D[i, 0];
                        this.stレーンサイズ[i].w = sizeXW_D[i, 1];
                        goto IL_19F;
                    }
IL_19F:
                    if (i == 7 && CDTXMania.ConfigIni.eRDPosition == ERDPosition.RDRC)
                    {
                        this.stレーンサイズ[i].x = sizeXW[9, 0] - 24;
                    }
                    if (i == 9 && CDTXMania.ConfigIni.eRDPosition == ERDPosition.RDRC)
                    {
                        this.stレーンサイズ[i].x = sizeXW[7, 0] - 18;
                    }
                }
            }
            base.OnActivate();
            this.nShowLagType = CDTXMania.ConfigIni.nShowLagType;
        }