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

        public CActResultParameterPanel()
        {
            this.txCharacter = new CTexture[3];
            ST文字位置[] st文字位置Array = new ST文字位置[11];
            ST文字位置   st文字位置      = new ST文字位置();

            st文字位置.ch      = '0';
            st文字位置.pt      = new Point(0, 0);
            st文字位置Array[0] = st文字位置;
            ST文字位置 st文字位置2 = new ST文字位置();

            st文字位置2.ch     = '1';
            st文字位置2.pt     = new Point(28, 0);
            st文字位置Array[1] = st文字位置2;
            ST文字位置 st文字位置3 = new ST文字位置();

            st文字位置3.ch     = '2';
            st文字位置3.pt     = new Point(56, 0);
            st文字位置Array[2] = st文字位置3;
            ST文字位置 st文字位置4 = new ST文字位置();

            st文字位置4.ch     = '3';
            st文字位置4.pt     = new Point(84, 0);
            st文字位置Array[3] = st文字位置4;
            ST文字位置 st文字位置5 = new ST文字位置();

            st文字位置5.ch     = '4';
            st文字位置5.pt     = new Point(112, 0);
            st文字位置Array[4] = st文字位置5;
            ST文字位置 st文字位置6 = new ST文字位置();

            st文字位置6.ch     = '5';
            st文字位置6.pt     = new Point(140, 0);
            st文字位置Array[5] = st文字位置6;
            ST文字位置 st文字位置7 = new ST文字位置();

            st文字位置7.ch     = '6';
            st文字位置7.pt     = new Point(168, 0);
            st文字位置Array[6] = st文字位置7;
            ST文字位置 st文字位置8 = new ST文字位置();

            st文字位置8.ch     = '7';
            st文字位置8.pt     = new Point(196, 0);
            st文字位置Array[7] = st文字位置8;
            ST文字位置 st文字位置9 = new ST文字位置();

            st文字位置9.ch     = '8';
            st文字位置9.pt     = new Point(224, 0);
            st文字位置Array[8] = st文字位置9;
            ST文字位置 st文字位置10 = new ST文字位置();

            st文字位置10.ch    = '9';
            st文字位置10.pt    = new Point(252, 0);
            st文字位置Array[9] = st文字位置10;
            ST文字位置 st文字位置11 = new ST文字位置();

            st文字位置11.ch                = '.';
            st文字位置11.pt                = new Point(280, 0);
            st文字位置Array[10]            = st文字位置11;
            this.stLargeStringPosition = st文字位置Array;

            ST文字位置[] st文字位置Array2 = new ST文字位置[11];
            ST文字位置   st文字位置12     = new ST文字位置();

            st文字位置12.ch     = '0';
            st文字位置12.pt     = new Point(0, 0);
            st文字位置Array2[0] = st文字位置12;
            ST文字位置 st文字位置13 = new ST文字位置();

            st文字位置13.ch     = '1';
            st文字位置13.pt     = new Point(20, 0);
            st文字位置Array2[1] = st文字位置13;
            ST文字位置 st文字位置14 = new ST文字位置();

            st文字位置14.ch     = '2';
            st文字位置14.pt     = new Point(40, 0);
            st文字位置Array2[2] = st文字位置14;
            ST文字位置 st文字位置15 = new ST文字位置();

            st文字位置15.ch     = '3';
            st文字位置15.pt     = new Point(60, 0);
            st文字位置Array2[3] = st文字位置15;
            ST文字位置 st文字位置16 = new ST文字位置();

            st文字位置16.ch     = '4';
            st文字位置16.pt     = new Point(80, 0);
            st文字位置Array2[4] = st文字位置16;
            ST文字位置 st文字位置17 = new ST文字位置();

            st文字位置17.ch     = '5';
            st文字位置17.pt     = new Point(100, 0);
            st文字位置Array2[5] = st文字位置17;
            ST文字位置 st文字位置18 = new ST文字位置();

            st文字位置18.ch     = '6';
            st文字位置18.pt     = new Point(120, 0);
            st文字位置Array2[6] = st文字位置18;
            ST文字位置 st文字位置19 = new ST文字位置();

            st文字位置19.ch     = '7';
            st文字位置19.pt     = new Point(140, 0);
            st文字位置Array2[7] = st文字位置19;
            ST文字位置 st文字位置20 = new ST文字位置();

            st文字位置20.ch     = '8';
            st文字位置20.pt     = new Point(160, 0);
            st文字位置Array2[8] = st文字位置20;
            ST文字位置 st文字位置21 = new ST文字位置();

            st文字位置21.ch     = '9';
            st文字位置21.pt     = new Point(180, 0);
            st文字位置Array2[9] = st文字位置21;
            ST文字位置 st文字位置22 = new ST文字位置();

            st文字位置22.ch                = '%';
            st文字位置22.pt                = new Point(200, 0);
            st文字位置Array2[10]           = st文字位置22;
            this.stSmallStringPosition = st文字位置Array2;
            ST文字位置[] st文字位置Array3 = new ST文字位置[12];
            ST文字位置   st文字位置23     = new ST文字位置();

            st文字位置23.ch     = '0';
            st文字位置23.pt     = new Point(0, 0);
            st文字位置Array3[0] = st文字位置23;
            ST文字位置 st文字位置24 = new ST文字位置();

            st文字位置24.ch     = '1';
            st文字位置24.pt     = new Point(0x12, 0);
            st文字位置Array3[1] = st文字位置24;
            ST文字位置 st文字位置25 = new ST文字位置();

            st文字位置25.ch     = '2';
            st文字位置25.pt     = new Point(0x24, 0);
            st文字位置Array3[2] = st文字位置25;
            ST文字位置 st文字位置26 = new ST文字位置();

            st文字位置26.ch     = '3';
            st文字位置26.pt     = new Point(0x36, 0);
            st文字位置Array3[3] = st文字位置26;
            ST文字位置 st文字位置27 = new ST文字位置();

            st文字位置27.ch     = '4';
            st文字位置27.pt     = new Point(0x48, 0);
            st文字位置Array3[4] = st文字位置27;
            ST文字位置 st文字位置28 = new ST文字位置();

            st文字位置28.ch     = '5';
            st文字位置28.pt     = new Point(0, 0x18);
            st文字位置Array3[5] = st文字位置28;
            ST文字位置 st文字位置29 = new ST文字位置();

            st文字位置29.ch     = '6';
            st文字位置29.pt     = new Point(0x12, 0x18);
            st文字位置Array3[6] = st文字位置29;
            ST文字位置 st文字位置30 = new ST文字位置();

            st文字位置30.ch     = '7';
            st文字位置30.pt     = new Point(0x24, 0x18);
            st文字位置Array3[7] = st文字位置30;
            ST文字位置 st文字位置31 = new ST文字位置();

            st文字位置31.ch     = '8';
            st文字位置31.pt     = new Point(0x36, 0x18);
            st文字位置Array3[8] = st文字位置31;
            ST文字位置 st文字位置32 = new ST文字位置();

            st文字位置32.ch     = '9';
            st文字位置32.pt     = new Point(0x48, 0x18);
            st文字位置Array3[9] = st文字位置32;
            ST文字位置 st文字位置33 = new ST文字位置();

            st文字位置33.ch      = '.';
            st文字位置33.pt      = new Point(90, 24);
            st文字位置Array3[10] = st文字位置33;
            ST文字位置 st文字位置34 = new ST文字位置();

            st文字位置34.ch      = '%';
            st文字位置34.pt      = new Point(90, 0);
            st文字位置Array3[11] = st文字位置34;
            this.st特大文字位置    = st文字位置Array3;


            ST文字位置[] st難易度文字位置Ar = new ST文字位置[11];
            ST文字位置   st難易度文字位置   = new ST文字位置();

            st難易度文字位置.ch   = '0';
            st難易度文字位置.pt   = new Point(0, 0);
            st難易度文字位置Ar[0] = st難易度文字位置;
            ST文字位置 st難易度文字位置2 = new ST文字位置();

            st難易度文字位置2.ch  = '1';
            st難易度文字位置2.pt  = new Point(16, 0);
            st難易度文字位置Ar[1] = st難易度文字位置2;
            ST文字位置 st難易度文字位置3 = new ST文字位置();

            st難易度文字位置3.ch  = '2';
            st難易度文字位置3.pt  = new Point(32, 0);
            st難易度文字位置Ar[2] = st難易度文字位置3;
            ST文字位置 st難易度文字位置4 = new ST文字位置();

            st難易度文字位置4.ch  = '3';
            st難易度文字位置4.pt  = new Point(48, 0);
            st難易度文字位置Ar[3] = st難易度文字位置4;
            ST文字位置 st難易度文字位置5 = new ST文字位置();

            st難易度文字位置5.ch  = '4';
            st難易度文字位置5.pt  = new Point(64, 0);
            st難易度文字位置Ar[4] = st難易度文字位置5;
            ST文字位置 st難易度文字位置6 = new ST文字位置();

            st難易度文字位置6.ch  = '5';
            st難易度文字位置6.pt  = new Point(80, 0);
            st難易度文字位置Ar[5] = st難易度文字位置6;
            ST文字位置 st難易度文字位置7 = new ST文字位置();

            st難易度文字位置7.ch  = '6';
            st難易度文字位置7.pt  = new Point(96, 0);
            st難易度文字位置Ar[6] = st難易度文字位置7;
            ST文字位置 st難易度文字位置8 = new ST文字位置();

            st難易度文字位置8.ch  = '7';
            st難易度文字位置8.pt  = new Point(112, 0);
            st難易度文字位置Ar[7] = st難易度文字位置8;
            ST文字位置 st難易度文字位置9 = new ST文字位置();

            st難易度文字位置9.ch  = '8';
            st難易度文字位置9.pt  = new Point(128, 0);
            st難易度文字位置Ar[8] = st難易度文字位置9;
            ST文字位置 st難易度文字位置10 = new ST文字位置();

            st難易度文字位置10.ch = '9';
            st難易度文字位置10.pt = new Point(144, 0);
            st難易度文字位置Ar[9] = st難易度文字位置10;
            ST文字位置 st難易度文字位置11 = new ST文字位置();

            st難易度文字位置11.ch  = '.';
            st難易度文字位置11.pt  = new Point(160, 0);
            st難易度文字位置Ar[10] = st難易度文字位置11;
            this.st難易度数字位置  = st難易度文字位置Ar;

            this.ptFullCombo位置 = new Point[] { new Point(220, 160), new Point(0xdf, 0xed), new Point(0x141, 0xed) };

            //Initialize positions of character in lag text sprite
            int             nWidth               = 15;
            int             nHeight              = 19;
            Point           ptRedTextOffset      = new Point(64, 64);
            List <ST文字位置Ex> LagCountBlueTextList = new List <ST文字位置Ex>();
            List <ST文字位置Ex> LagCountRedTextList  = new List <ST文字位置Ex>();

            int[] nPosXArray = { 0, 15, 30, 45, 0, 15, 30, 45, 0, 15 };
            int[] nPosYArray = { 0, 0, 0, 0, 19, 19, 19, 19, 38, 38 };
            for (int i = 0; i < nPosXArray.Length; i++)
            {
                ST文字位置Ex stCurrText = new ST文字位置Ex();
                stCurrText.ch   = (char)('0' + i);
                stCurrText.rect = new Rectangle(nPosXArray[i], nPosYArray[i], nWidth, nHeight);
                LagCountBlueTextList.Add(stCurrText);

                ST文字位置Ex stNextCurrText = new ST文字位置Ex();
                stNextCurrText.ch   = (char)('0' + i);
                stNextCurrText.rect = new Rectangle(nPosXArray[i] + ptRedTextOffset.X,
                                                    nPosYArray[i] + ptRedTextOffset.Y, nWidth, nHeight);
                LagCountRedTextList.Add(stNextCurrText);
            }

            this.stLagCountBlueText = LagCountBlueTextList.ToArray();
            this.stLagCountRedText  = LagCountRedTextList.ToArray();

            base.bNotActivated = true;
        }
예제 #2
0
        // コンストラクタ
        public CActPerfCommonStatusPanel()
        {
            this.stパネルマップ = null;
            this.stパネルマップ = new STATUSPANEL[12];                // yyagi: 以下、手抜きの初期化でスマン
            // { "DTXMANIA", 0 }, { "EXTREME", 1 }, ... みたいに書きたいが___

            //2013.09.07.kairera0467 画像の順番もこの並びになるので、難易度ラベルを追加する時は12以降に追加した方が画像編集でも助かります。
            string[] labels = new string[12] {
                "DTXMANIA", //0
                "DEBUT",    //1
                "NOVICE",   //2
                "REGULAR",  //3
                "EXPERT",   //4
                "MASTER",   //5
                "BASIC",    //6
                "ADVANCED", //7
                "EXTREME",  //8
                "RAW",      //9
                "RWS",      //10
                "REAL"      //11
            };
            int[] status = new int[12] {
                0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
            };

            for (int i = 0; i < 12; i++)
            {
                this.stパネルマップ[i] = default(CActPerfCommonStatusPanel.STATUSPANEL);
                //this.stPanelMap[i] = new STATUSPANEL();
                this.stパネルマップ[i].status = status[i];
                this.stパネルマップ[i].label  = labels[i];
            }

            //Initialize positions of character in lag text sprite
            int             nWidth               = 15;
            int             nHeight              = 19;
            Point           ptRedTextOffset      = new Point(64, 64);
            List <ST文字位置Ex> LagCountBlueTextList = new List <ST文字位置Ex>();
            List <ST文字位置Ex> LagCountRedTextList  = new List <ST文字位置Ex>();

            int[] nPosXArray = { 0, 15, 30, 45, 0, 15, 30, 45, 0, 15 };
            int[] nPosYArray = { 0, 0, 0, 0, 19, 19, 19, 19, 38, 38 };
            for (int i = 0; i < nPosXArray.Length; i++)
            {
                ST文字位置Ex stCurrText = new ST文字位置Ex();
                stCurrText.ch   = (char)('0' + i);
                stCurrText.rect = new Rectangle(nPosXArray[i], nPosYArray[i], nWidth, nHeight);
                LagCountBlueTextList.Add(stCurrText);

                ST文字位置Ex stNextCurrText = new ST文字位置Ex();
                stNextCurrText.ch   = (char)('0' + i);
                stNextCurrText.rect = new Rectangle(nPosXArray[i] + ptRedTextOffset.X,
                                                    nPosYArray[i] + ptRedTextOffset.Y, nWidth, nHeight);
                LagCountRedTextList.Add(stNextCurrText);
            }

            this.stLagCountBlueText = LagCountBlueTextList.ToArray();
            this.stLagCountRedText  = LagCountRedTextList.ToArray();

            base.bNotActivated = true;
        }