○CStage演奏画面共通
・On活性化 ※一部
this.nJudgeLinePosY = CDTXMania.ConfigIni.nJudgeLine;
this.nShutterInPosY = CDTXMania.ConfigIni.nShutterInSide;
this.nShutterOutPosY = CDTXMania.ConfigIni.nShutterOutSide;
・tキー入力 ※一部
if (keyboard.bキーが押されている( (int) SlimDX.DirectInput.Key.PageUp))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nJudgeLinePosY > nJudgeLineMinPosY)
{
this.nJudgeLinePosY--;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nJudgeLinePosY > nJudgeLineMinPosY)
{
this.nJudgeLinePosY--;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nJudgeLine = (nJudgeLineMaxPosY - this.nJudgeLinePosY);
CDTXMania.stage演奏ドラム画面.tJudgeLineMovingUpandDown();
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.PageDown))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nJudgeLinePosY < nJudgeLineMaxPosY)
{
this.nJudgeLinePosY++;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nJudgeLinePosY < nJudgeLineMaxPosY)
{
this.nJudgeLinePosY++;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nJudgeLine = nJudgeLineMaxPosY - this.nJudgeLinePosY;
CDTXMania.stage演奏ドラム画面.tJudgeLineMovingUpandDown();
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad8))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterInPosY > 0)
{
this.nShutterInPosY--;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterInPosY > -100)
{
this.nShutterInPosY--;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterInSide = nShutterInMaxPosY - this.nShutterInPosY;
CDTXMania.stage演奏ドラム画面.tJudgeLineMovingUpandDown();
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad2))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterInPosY < 100)
{
this.nShutterInPosY++;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterInPosY < 100)
{
this.nShutterInPosY++;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterInSide = nShutterInMaxPosY - this.nShutterInPosY;
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad4))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterOutPosY < 100)
{
this.nShutterOutPosY++;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterOutPosY < 100)
{
this.nShutterOutPosY++;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterOutSide = nShutterInMaxPosY - this.nShutterOutPosY;
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad6))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterOutPosY > 0)
{
this.nShutterOutPosY--;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterOutPosY > 0)
{
this.nShutterOutPosY--;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterOutSide = nShutterInMaxPosY - this.nShutterOutPosY;
}
PR