OSDN Git Service

#36043 rev.920 で手違いが起きたため、一度 rev.919 に戻し、ファイルを再修正。Ech定義の使用を CChip のプロパティを使うよう一部変更。
[dtxmania/dtxmania.git] / DTXManiaプロジェクト / コード / ステージ / 07.演奏 / ドラム画面 / CAct演奏DrumsレーンフラッシュGB.cs
index 793adaf..fc564aa 100644 (file)
@@ -12,39 +12,39 @@ namespace DTXMania
 \r
                public override int On進行描画()\r
                {\r
-                       if (!base.b活性化してない)\r
+                       if ( !base.b活性化してない )\r
                        {\r
-                               for (int i = 0; i < 6; i++)\r
+                               for ( int i = 0; i < 6; i++ )\r
                                {\r
-                                       if (!base.ct進行[i].b停止中)\r
+                                       if ( !base.ct進行[ i ].b停止中 )\r
                                        {\r
-                                               E楽器パート e楽器パート = (i < 3) ? E楽器パート.GUITAR : E楽器パート.BASS;\r
-                                               CTextureAf texture = CDTXMania.app.ConfigIni.bReverse[(int)e楽器パート] ? base.txFlush[(i % 3) + 3] : base.txFlush[i % 3];\r
-                                               int bLeft = CDTXMania.app.ConfigIni.bLeft[(int)e楽器パート] ? 1 : 0;\r
-                                               int x = (((i < 3) ? 1521 : 1194) + this.nRGBのX座標[bLeft, i] * 3) + ((16 * base.ct進行[i].n現在の値) / 100) * 3;\r
-                                               if (CDTXMania.app.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Center)\r
+                                               E楽器パート e楽器パート = ( i < 3 ) ? E楽器パート.GUITAR : E楽器パート.BASS;\r
+                                               CTextureAf texture = CDTXMania.Instance.ConfigIni.bReverse[ (int) e楽器パート ] ? base.txFlush[ ( i % 3 ) + 3 ] : base.txFlush[ i % 3 ];\r
+                                               int bLeft = CDTXMania.Instance.ConfigIni.bLeft[ (int) e楽器パート ] ? 1 : 0;\r
+                                               int x = ( ( ( i < 3 ) ? 1521 : 1194 ) + this.nRGBのX座標[ bLeft, i ] * 3 ) + ( ( 16 * base.ct進行[ i ].n現在の値 ) / 100 ) * 3;\r
+                                               if (CDTXMania.Instance.ConfigIni.eドラムレーン表示位置 == Eドラムレーン表示位置.Center)\r
                                                {\r
-                                                       x -= (e楽器パート == E楽器パート.GUITAR) ? 71 : 994;\r
+                                                       x -= ( e楽器パート == E楽器パート.GUITAR ) ? 71 : 994;\r
                                                }\r
-                                               int y = ((i < 3) ? 0x39 : 0x39);\r
-                                               if (texture != null)\r
+                                               int y = ( ( i < 3 ) ? 0x39 : 0x39 );\r
+                                               if ( texture != null )\r
                                                {\r
                                                        texture.t2D描画(\r
-                                                               CDTXMania.app.Device,\r
+                                                               CDTXMania.Instance.Device,\r
                                                                x,\r
                                                                y * Scale.Y,\r
                                                                new Rectangle(\r
                                                                        0, //(int) ( ( j * 0x20 ) * Scale.X ),\r
                                                                        0,\r
-                                                                       (int)((0x18 * (100 - base.ct進行[i].n現在の値)) / 100 * Scale.X),\r
-                                                                       (int)(0x76 * 3 * Scale.Y)\r
+                                                                       (int) ( ( 0x18 * ( 100 - base.ct進行[ i ].n現在の値 ) ) / 100 * Scale.X ),\r
+                                                                       (int) ( 0x76 * 3 * Scale.Y )\r
                                                                )\r
                                                        );\r
                                                }\r
-                                               base.ct進行[i].t進行();\r
-                                               if (base.ct進行[i].b終了値に達した)\r
+                                               base.ct進行[ i ].t進行();\r
+                                               if ( base.ct進行[ i ].b終了値に達した )\r
                                                {\r
-                                                       base.ct進行[i].t停止();\r
+                                                       base.ct進行[ i ].t停止();\r
                                                }\r
                                        }\r
                                }\r
@@ -57,7 +57,7 @@ namespace DTXMania
 \r
                #region [ private ]\r
                //-----------------\r
-               private readonly int[,] nRGBのX座標 = new int[,] { { 2, 0x1c, 0x36, 2, 0x1c, 0x36 }, { 0x36, 0x1c, 2, 0x36, 0x1c, 2 } };\r
+               private readonly int[ , ] nRGBのX座標 = new int[ , ] { { 2, 0x1c, 0x36, 2, 0x1c, 0x36 }, { 0x36, 0x1c, 2, 0x36, 0x1c, 2 } };\r
                //-----------------\r
                #endregion\r
        }\r