public override void OnManagedリソースの解放() { Dan_Plate?.Dispose(); Sound_Section?.t解放する(); Sound_Failed?.t解放する(); base.OnManagedリソースの解放(); }
// public void Start(int number) { NowShowingNumber = number; Counter_In = new CCounter(0, 999, 1, TJAPlayer3.Timer); ScreenPoint = new double[] { TJAPlayer3.Skin.nScrollFieldBGX[0] - TJAPlayer3.Tx.DanC_Screen.szテクスチャサイズ.Width / 2, 1280 }; TJAPlayer3.stage演奏ドラム画面.ReSetScore(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].ScoreInit, TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].ScoreDiff); IsAnimating = true; TJAPlayer3.stage演奏ドラム画面.actPanel.SetPanelString(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Title, TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Genre, 1 + NowShowingNumber + "曲目"); Sound_Section?.tサウンドを先頭から再生する(); }
// public void Start(int number) { NowShowingNumber = number; Counter_In = new CCounter(0, 999, 1, TJAPlayer3.Timer); ScreenPoint = new double[] { TJAPlayer3.Skin.nScrollFieldBGX[0] - (TJAPlayer3.Tx.DanC_Screen?.szテクスチャサイズ.Width ?? 1280) / 2, 1280 }; //2020.06.06 Mr-Ojii twopointzero氏のソースコードをもとに改良 TJAPlayer3.stage演奏ドラム画面.ReSetScore(TJAPlayer3.DTX[0].List_DanSongs[NowShowingNumber].ScoreInit, TJAPlayer3.DTX[0].List_DanSongs[NowShowingNumber].ScoreDiff); IsAnimating = true; TJAPlayer3.stage演奏ドラム画面.actPanel.SetPanelString(TJAPlayer3.DTX[0].List_DanSongs[NowShowingNumber].Title, TJAPlayer3.DTX[0].List_DanSongs[NowShowingNumber].Genre, 1 + NowShowingNumber + "曲目"); Sound_Section?.t再生を開始する(); }
public override void OnManagedリソースの解放() { if (!this.b活性化してない) { TJAPlayer3.t安全にDisposeする(ref Dan_Plate); Sound_Section?.t解放する(); Sound_Failed?.t解放する(); base.OnManagedリソースの解放(); } }
public override void OnManagedリソースの解放() { if (TJAPlayer4.stage選曲.n確定された曲の難易度[0] != (int)Difficulty.Dan) { return; } Dan_Plate?.Dispose(); Sound_Section?.t解放する(); Sound_Failed?.t解放する(); base.OnManagedリソースの解放(); }
// public void Start(int number) { NowShowingNumber = number; if (number == 0) { Counter_Wait = new CCounter(0, 2299, 1, TJAPlayer3.Timer); } else { Counter_In = new CCounter(0, 999, 1, TJAPlayer3.Timer); } bExamChangeCheck = false; if (number == 0) { for (int i = 1; i < 4; i++) { ExamChange[i] = false; } for (int j = 1; j < 4; j++) //段位条件のループ(魂ゲージを除く) 縦(y) { if (TJAPlayer3.stage選曲.r確定された曲.DanSongs[0].Dan_C[j] != null) { if (TJAPlayer3.stage選曲.r確定された曲.DanSongs[TJAPlayer3.stage選曲.r確定された曲.DanSongs.Count - 1].Dan_C[j] != null) //個別の条件がありますよー { Challenge[j] = TJAPlayer3.stage選曲.r確定された曲.DanSongs[NowShowingNumber].Dan_C[j]; ExamChange[j] = true; } } } } ScreenPoint = new double[] { TJAPlayer3.Skin.nScrollFieldBGX[0] - TJAPlayer3.Tx.DanC_Screen.szテクスチャサイズ.Width / 2, 1280 }; TJAPlayer3.stage演奏ドラム画面.ReSetScore(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].ScoreInit, TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].ScoreDiff); IsAnimating = true; TJAPlayer3.stage演奏ドラム画面.actPanel.SetPanelString(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Title, TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Genre, 1 + NowShowingNumber + "曲目"); if (number == 0) { Sound_Section_First?.t再生を開始する(); } else { Sound_Section?.t再生を開始する(); } }
// public void Start(int number) { NowShowingNumber = number; Counter_In = new CCounter(0, 999, 1, TJAPlayer3.Timer); ScreenPoint = new double[] { TJAPlayer3.Skin.nScrollFieldBGX[0] - TJAPlayer3.Tx.DanC_Screen.szテクスチャサイズ.Width / 2, 1280 }; TJAPlayer3.stage演奏ドラム画面.ReSetScore(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].ScoreInit, TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].ScoreDiff); IsAnimating = true; TJAPlayer3.stage演奏ドラム画面.actPanel.SetPanelString(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Title, TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Genre, 1 + NowShowingNumber + "曲目"); var pfTitle = new CPrivateFont(); var pfSubTitle = new CPrivateFont(); if (!string.IsNullOrEmpty(TJAPlayer3.ConfigIni.FontName)) { pfTitle = new CPrivateFont(new FontFamily(TJAPlayer3.ConfigIni.FontName), 30); pfSubTitle = new CPrivateFont(new FontFamily(TJAPlayer3.ConfigIni.FontName), 22); } else { pfTitle = new CPrivateFont(new FontFamily("MS UI Gothic"), 30); pfSubTitle = new CPrivateFont(new FontFamily("MS UI Gothic"), 22); } if (!string.IsNullOrEmpty(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Title)) { using (var bmpSongTitle = pfTitle.DrawPrivateFont(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].Title, Color.White, Color.Black)) { TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].TitleTex = TJAPlayer3.tテクスチャの生成(bmpSongTitle, false); TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].TitleTex.vc拡大縮小倍率.X = TJAPlayer3.GetSongNameXScaling(ref TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].TitleTex, 710); } } if (!string.IsNullOrEmpty(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].SubTitle)) { using (var bmpSongSubTitle = pfSubTitle.DrawPrivateFont(TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].SubTitle, Color.White, Color.Black)) { TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].SubTitleTex = TJAPlayer3.tテクスチャの生成(bmpSongSubTitle, false); TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].SubTitleTex.vc拡大縮小倍率.X = TJAPlayer3.GetSongNameXScaling(ref TJAPlayer3.DTX.List_DanSongs[NowShowingNumber].SubTitleTex, 710); } } pfTitle?.Dispose(); pfSubTitle?.Dispose(); Sound_Section?.tサウンドを先頭から再生する(); }
// public void Start(int number) { if (TJAPlayer4.stage選曲.n確定された曲の難易度[0] != (int)Difficulty.Dan) { return; } NowShowingNumber = number; nNowCombo = 0; nPerfectCount = TJAPlayer4.stage演奏ドラム画面.nヒット数_Auto含む[0].Drums.Perfect + TJAPlayer4.stage演奏ドラム画面.nヒット数_Auto含まない[0].Drums.Perfect; nGoodCount = TJAPlayer4.stage演奏ドラム画面.nヒット数_Auto含む[0].Drums.Great + TJAPlayer4.stage演奏ドラム画面.nヒット数_Auto含まない[0].Drums.Great; nMissCount = TJAPlayer4.stage演奏ドラム画面.nヒット数_Auto含まない[0].Drums.Miss; nRollCount = TJAPlayer4.stage演奏ドラム画面.GetRoll(0); nScoreCount = (int)TJAPlayer4.stage演奏ドラム画面.actScore.GetScore(0); Counter_In = new CCounter(0, 999, 1, TJAPlayer4.Timer); Update(false); ScreenPoint = new double[] { TJAPlayer4.Skin.nScrollFieldBGX[0] - TJAPlayer4.Tx.DanC_Screen.szテクスチャサイズ.Width / 2, 1280 }; TJAPlayer4.stage演奏ドラム画面.ReSetScore(TJAPlayer4.DTX[0].List_DanSongs[NowShowingNumber].ScoreInit, TJAPlayer4.DTX[0].List_DanSongs[NowShowingNumber].ScoreDiff, 0); IsAnimating = true; TJAPlayer4.stage演奏ドラム画面.actPanel.SetPanelString(TJAPlayer4.DTX[0].List_DanSongs[NowShowingNumber].Title, TJAPlayer4.DTX[0].List_DanSongs[NowShowingNumber].Genre, 1 + NowShowingNumber + "曲目"); Sound_Section?.tサウンドを先頭から再生する(); }