{\r
internal class CAct演奏レーンフラッシュGB共通 : CActivity\r
{\r
- protected CCounter[] ct進行 = new CCounter[6];\r
- CTexture tx = new CTexture();\r
static ELane[] lanes = new ELane[] { ELane.GtR, ELane.GtG, ELane.GtB, ELane.BsR, ELane.BsG, ELane.BsB };\r
+ static int MAXLANES = lanes.GetLength( 0 );\r
+ protected CCounter[] ct進行 = new CCounter[ MAXLANES ];\r
+ CTexture tx = new CTexture();\r
\r
public void Start(int nLane)\r
{\r
{\r
if (b活性化してない)\r
{\r
- for (int i = 0; i < 6; i++)\r
+ for (int i = 0; i < MAXLANES; i++)\r
{\r
this.ct進行[i] = new CCounter();\r
}\r
{\r
if (b活性化してる)\r
{\r
- for (int i = 0; i < 6; i++)\r
+ for (int i = 0; i < MAXLANES; i++)\r
{\r
this.ct進行[i] = null;\r
}\r
CDTXMania.Instance.ConfigIni.eDark == EDark.Off)\r
{\r
int imgX = CDTXMania.Instance.Coordinates.ImgGtLaneFlash.X;\r
- for (int i = 0; i < 6; i++)\r
+ for (int i = 0; i < MAXLANES; i++)\r
{\r
- if (i % 3 == 0)\r
+ if (i % (MAXLANES / 2) == 0)\r
{\r
imgX = CDTXMania.Instance.Coordinates.ImgGtLaneFlash.X;\r
}\r
- EPart inst = (i < 3) ? EPart.Guitar : EPart.Bass;\r
+ EPart inst = (i < (MAXLANES / 2) ) ? EPart.Guitar : EPart.Bass;\r
\r
int x = CDTXMania.Instance.ConfigIni.GetLaneX(lanes[i]);\r
int w = CDTXMania.Instance.ConfigIni.GetLaneW(lanes[i]);\r
int y = CDTXMania.Instance.Coordinates.LaneFlash[inst].Y;\r
tx.t2D描画(\r
CDTXMania.Instance.Device,\r
- x,\r
+ x + (int) ( w * ( ct進行[ i ].n現在の値 ) / (100 * 2) ),\r
CDTXMania.Instance.ConfigIni.bReverse[inst] ? SampleFramework.GameWindowSize.Height - y - CDTXMania.Instance.Coordinates.ImgGtLaneFlash.H : y,\r
new Rectangle(\r
imgX,\r