1
0
mirror of synced 2025-01-29 19:17:25 +01:00
This commit is contained in:
0aubsq 2022-06-18 09:06:54 +02:00
parent 52cd66d2b6
commit 9bc9b1d465
3 changed files with 41 additions and 34 deletions

View File

@ -3322,13 +3322,9 @@ namespace TJAPlayer3
this.t入力_行解析譜面_V4(str);
/*
if (!String.IsNullOrEmpty(strSplit読み込むコース[i]))
this.tDanExamLoad(strSplit読み込むコース[i]);
*/
}
// Retrieve all the global exams (non individual) at the end
if (DanSongs.Number > 0)
{
for (int i = 0; i < CExamInfo.cMaxExam; i++)
@ -4104,7 +4100,7 @@ namespace TJAPlayer3
//if (listChip[i].nチャンネル番号 >= 0x11 && listChip[i].nチャンネル番号 <= 0x18)
if (NotesManager.IsHittableNote(listChip[i]))
{
if(DanSongs.Number != 0)
if (DanSongs.Number != 0)
{
Array.Resize(ref this.pDan_LastChip, this.pDan_LastChip.Length + 1);
this.pDan_LastChip[DanSongs.Number - 1] = listChip[i];

View File

@ -3436,7 +3436,8 @@ namespace TJAPlayer3
this.actPanel.t歌詞テクスチャを削除する();
if (pChip.nコース == this.n現在のコース[nPlayer])
{
if(ListDan_Number != 0 && actDan.FirstSectionAnime)
this.actDan.Update();
if (ListDan_Number != 0 && actDan.FirstSectionAnime)
{
if (this.actDan.GetFailedAllChallenges())
{

View File

@ -301,42 +301,45 @@ namespace TJAPlayer3
// 音源が終了したやつの分岐。
// ( CDTXMania.DTX.listChip.Count > 0 ) ? CDTXMania.DTX.listChip[ CDTXMania.DTX.listChip.Count - 1 ].n発声時刻ms : 0;
// Bug here when charts have an extra roll ?
// Check challenge fails at the end of each songs
// Challenges that are judged when the song stops
if(!IsEnded[NowShowingNumber])
{
if (TJAPlayer3.DTX.listChip.Count <= 0) continue;
if (ExamChange[i]
? TJAPlayer3.DTX.pDan_LastChip[NowShowingNumber].n発声時刻ms <= TJAPlayer3.Timer.n現在時刻
: TJAPlayer3.DTX.listChip[TJAPlayer3.DTX.listChip.Count - 1].n発声時刻ms <= TJAPlayer3.Timer.n現在時刻)
{
switch (Challenge[i].GetExamType())
{
case Exam.Type.Score:
if (TJAPlayer3.DTX.listChip.Count > 0)
{
if (ExamChange[i]
? TJAPlayer3.DTX.pDan_LastChip[NowShowingNumber].n発声時刻ms <= CSound管理.rc演奏用タイマ.n現在時刻//TJAPlayer3.Timer.n現在時刻
: TJAPlayer3.DTX.listChip[TJAPlayer3.DTX.listChip.Count - 1].n発声時刻ms <= CSound管理.rc演奏用タイマ.n現在時刻)//TJAPlayer3.Timer.n現在時刻)
{
switch (Challenge[i].GetExamType())
{
case Exam.Type.Score:
case Exam.Type.Hit:
// Should be checked in live "If no remaining roll"
case Exam.Type.Roll:
// Should be checked in live "If no remaining ADLIB/Mine"
case Exam.Type.JudgeADLIB:
case Exam.Type.JudgeADLIB:
case Exam.Type.JudgeMine:
// Catch normaly already checked cases that would be forgotten before (ex : for charts with branches)
case Exam.Type.JudgePerfect:
case Exam.Type.JudgeGood:
case Exam.Type.JudgeBad:
case Exam.Type.Gauge:
case Exam.Type.Accuracy:
case Exam.Type.Combo:
if (Challenge[i].Amount < Challenge[i].Value[0]) Challenge[i].SetReached(true);
break;
default:
break;
}
if (Challenge[i].Amount < Challenge[i].Value[0]) Challenge[i].SetReached(true);
break;
default:
break;
}
}
}
/*
if (!IsEnded[NowShowingNumber])
{
if (TJAPlayer3.DTX.listChip.Count <= 0) continue;
if (ExamChange[i]
? TJAPlayer3.DTX.pDan_LastChip[NowShowingNumber].n発声時刻ms <= CSound管理.rc演奏用タイマ.n現在時刻//TJAPlayer3.Timer.n現在時刻
: TJAPlayer3.DTX.listChip[TJAPlayer3.DTX.listChip.Count - 1].n発声時刻ms <= CSound管理.rc演奏用タイマ.n現在時刻)//TJAPlayer3.Timer.n現在時刻)
{
IsEnded[NowShowingNumber] = true;
}
}
*/
}
if(oldReached == false && Challenge[i].GetReached() == true)
if (oldReached == false && Challenge[i].GetReached() == true)
{
Sound_Failed?.t再生を開始する();
}
@ -540,9 +543,16 @@ namespace TJAPlayer3
#endregion
/*
TJAPlayer3.act文字コンソール.tPrint(0, 0, C文字コンソール.Eフォント種別., TJAPlayer3.DTX.pDan_LastChip[NowShowingNumber].n発声時刻ms + " / " + CSound管理.rc演奏用タイマ.n現在時刻);
TJAPlayer3.act文字コンソール.tPrint(100, 20, C文字コンソール.Eフォント種別., TJAPlayer3.DTX.pDan_LastChip[NowShowingNumber].n発声時刻ms.ToString());
TJAPlayer3.act文字コンソール.tPrint(100, 40, C文字コンソール.Eフォント種別., TJAPlayer3.DTX.listChip[TJAPlayer3.DTX.listChip.Count - 1].n発声時刻ms.ToString());
TJAPlayer3.act文字コンソール.tPrint(100, 60, C文字コンソール.Eフォント種別., TJAPlayer3.Timer.n現在時刻.ToString());
*/
// Challenges that are judged when the song stops
return base.On進行描画();
}